Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 57 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 makeWrapper, 6 git, 7 gnupg, 8 gawk, 9 installShellFiles, 10}: 11 12stdenv.mkDerivation { 13 pname = "git-secret"; 14 version = "0.5.0-unstable-2024-12-09"; 15 16 src = fetchFromGitHub { 17 repo = "git-secret"; 18 owner = "sobolevn"; 19 rev = "fdc5e755b34569b0ad3d84a85e611afbb86c4db5"; 20 hash = "sha256-SN6Xpkc8bd1yuvUMlKaXb5M1ts1JxZynVa5GHBKyOjw="; 21 }; 22 23 nativeBuildInputs = [ 24 makeWrapper 25 installShellFiles 26 ]; 27 28 installPhase = 29 let 30 binPath = lib.makeBinPath [ 31 git 32 gnupg 33 gawk 34 ]; 35 in 36 '' 37 runHook preInstall 38 39 installBin git-secret 40 wrapProgram "$out/bin/git-secret" --prefix PATH : "${binPath}" 41 42 shopt -s extglob 43 installManPage man/**/!(*.md) 44 shopt -u extglob 45 46 runHook postInstall 47 ''; 48 49 meta = { 50 description = "Bash-tool to store your private data inside a git repository"; 51 homepage = "https://sobolevn.me/git-secret/"; 52 license = lib.licenses.mit; 53 maintainers = [ lib.maintainers.lo1tuma ]; 54 platforms = lib.platforms.all; 55 mainProgram = "git-secret"; 56 }; 57}