From 2a3afcaf659bca7fa43501f6adb016626e6f29ed Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 3 Mar 2022 13:34:20 +0100 Subject: [PATCH] Test WinSCP --- nix/toolchain.nix | 2 ++ nix/winscp.nix | 28 ++++++++++++++++++++++++++++ script/dev-env-winscp.sh | 4 ++++ script/test-smoke.sh | 25 +++++++++++++++++++++++++ shell.nix | 4 +++- 5 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 nix/winscp.nix create mode 100644 script/dev-env-winscp.sh diff --git a/nix/toolchain.nix b/nix/toolchain.nix index e8baa63a..7f5d89d3 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 00000000..10d3cb28 --- /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 <