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 <