mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
7067000393
Node.js 14 is EOL. https://github.com/NixOS/nixpkgs/pull/229910 Package changelog: https://github.com/psi-4ward/psitransfer/releases Package compare v2.0.1...v2.1.2: https://github.com/psi-4ward/psitransfer/compare/v2.0.1...v2.1.2
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
# To update package version:
|
|
# 1. Change version string in node-package.json and this file
|
|
# 2. Run `./generate.sh` to rebuild node dependencies with node2nix
|
|
# 3. Build this package `nix-build -A psitransfer`
|
|
# 4. Profit
|
|
|
|
{ stdenv
|
|
, pkgs
|
|
, lib
|
|
, nodejs_18
|
|
, fetchzip
|
|
}:
|
|
|
|
let
|
|
nodejs = nodejs_18;
|
|
|
|
nodePackages = import ./node-composition.nix {
|
|
inherit pkgs nodejs;
|
|
inherit (stdenv.hostPlatform) system;
|
|
};
|
|
|
|
psitransfer = lib.head (lib.attrValues nodePackages);
|
|
|
|
combined = psitransfer.override rec {
|
|
# version is not defined in source package.json
|
|
# version must also be maintained in node-packages.json for node2nix
|
|
version = "2.1.2";
|
|
|
|
# override node2nix package src to pull pre-built release of same version
|
|
src = fetchzip {
|
|
url = "https://github.com/psi-4ward/psitransfer/releases/download/v${version}/psitransfer-v${version}.tar.gz";
|
|
sha256 = "mfldWTVmfcIRa+1g8YDnQqem5YmrFRfCxJoitWcXvns=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/psi-4ward/psitransfer";
|
|
description = "Simple open source self-hosted file sharing solution";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ hyshka ];
|
|
};
|
|
};
|
|
in
|
|
combined
|