Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 65 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 docutils, 6 makeWrapper, 7 gnupg, 8 curl, 9 rsync, 10 coreutils, 11 gawk, 12 gnused, 13 gnugrep, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "git-remote-gcrypt"; 18 version = "1.5"; 19 rev = version; 20 21 src = fetchFromGitHub { 22 inherit rev; 23 owner = "spwhitton"; 24 repo = "git-remote-gcrypt"; 25 sha256 = "sha256-uy6s3YQwY/aZmQoW/qe1YrSlfNHyDTXBFxB6fPGiPNQ="; 26 }; 27 28 outputs = [ 29 "out" 30 "man" 31 ]; 32 33 nativeBuildInputs = [ 34 docutils 35 makeWrapper 36 ]; 37 38 installPhase = '' 39 prefix="$out" ./install.sh 40 wrapProgram "$out/bin/git-remote-gcrypt" \ 41 --prefix PATH ":" "${ 42 lib.makeBinPath [ 43 gnupg 44 curl 45 rsync 46 coreutils 47 gawk 48 gnused 49 gnugrep 50 ] 51 }" 52 ''; 53 54 meta = with lib; { 55 homepage = "https://spwhitton.name/tech/code/git-remote-gcrypt"; 56 description = "Git remote helper for GPG-encrypted remotes"; 57 license = licenses.gpl3; 58 maintainers = with maintainers; [ 59 ellis 60 montag451 61 ]; 62 platforms = platforms.unix; 63 mainProgram = "git-remote-gcrypt"; 64 }; 65}