diff --git a/nix/toolchain.nix b/nix/toolchain.nix index e8baa63a8..7f5d89d31 100644 --- a/nix/toolchain.nix +++ b/nix/toolchain.nix @@ -18,6 +18,7 @@ let pkgsHost = import pkgsSrc {}; lib = pkgsHost.lib; kaniko = (import ./kaniko.nix) pkgsHost; + winscp = (import ./winscp.nix) pkgsHost; in lib.flatten (builtins.map (pkgs: [ pkgs.rustPlatform.rust.rustc @@ -25,5 +26,6 @@ in pkgs.buildPackages.stdenv.cc ]) pkgsList) ++ [ kaniko + winscp ] diff --git a/nix/winscp.nix b/nix/winscp.nix new file mode 100644 index 000000000..10d3cb289 --- /dev/null +++ b/nix/winscp.nix @@ -0,0 +1,28 @@ +pkgs: + +pkgs.stdenv.mkDerivation rec { + pname = "winscp"; + version = "5.19.6"; + + src = pkgs.fetchzip { + url = "https://winscp.net/download/WinSCP-${version}-Portable.zip"; + sha256 = "sha256-8+6JuT0b1fFQ6etaFTMSjIKvDGzmJoHAuByXiqCBzu0="; + stripRoot = false; + }; + + buildPhase = '' + cat > winscp <