nixpkgs/pkgs/applications/version-management/git-secret/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
861 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, makeWrapper, git, gnupg, gawk }:
2022-03-07 11:37:20 +00:00
stdenv.mkDerivation rec {
pname = "git-secret";
2022-06-26 00:32:38 +00:00
version = "0.5.0";
src = fetchFromGitHub {
2022-03-07 11:37:20 +00:00
repo = "git-secret";
owner = "sobolevn";
rev = "v${version}";
2022-06-26 00:32:38 +00:00
sha256 = "sha256-Vdlv3H99BZcT1O66ZCpq5olENOaUSubx58B1PQ/OlMU=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
install -D git-secret $out/bin/git-secret
wrapProgram $out/bin/git-secret \
--prefix PATH : "${lib.makeBinPath [ git gnupg gawk ]}"
mkdir $out/share
cp -r man $out/share
'';
meta = {
description = "A bash-tool to store your private data inside a git repository";
homepage = "https://git-secret.io";
2021-01-15 13:21:58 +00:00
license = lib.licenses.mit;
maintainers = [ lib.maintainers.lo1tuma ];
platforms = lib.platforms.all;
2023-11-27 01:17:53 +00:00
mainProgram = "git-secret";
};
}