Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 45 lines 881 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 zlib, 7 openssl, 8 krb5, 9}: 10stdenv.mkDerivation (finalAttrs: { 11 pname = "mscp"; 12 version = "0.2.2"; 13 14 src = fetchFromGitHub { 15 owner = "upa"; 16 repo = "mscp"; 17 rev = "v${finalAttrs.version}"; 18 hash = "sha256-5lX0b3JfjmQh/HlESRMNxqCe2qFRAEZoazysoy252dY="; 19 fetchSubmodules = true; 20 }; 21 22 postPatch = '' 23 echo ${lib.escapeShellArg finalAttrs.version} > VERSION 24 patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch 25 ''; 26 27 strictDeps = true; 28 29 nativeBuildInputs = [ cmake ]; 30 31 buildInputs = [ 32 krb5 33 openssl 34 zlib 35 ]; 36 37 meta = { 38 description = "Transfer files over multiple SSH (SFTP) connections"; 39 homepage = "https://github.com/upa/mscp"; 40 mainProgram = "mscp"; 41 license = lib.licenses.gpl3Only; 42 teams = [ lib.teams.deshaw ]; 43 platforms = lib.platforms.unix; 44 }; 45})