2018-12-20 11:09:42 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, git, gnupg, gawk }:
|
2017-11-11 00:12:41 +01:00
|
|
|
|
|
|
|
let
|
2019-10-22 01:17:04 +02:00
|
|
|
version = "0.3.2";
|
2017-11-11 00:12:41 +01:00
|
|
|
repo = "git-secret";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "${repo}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit repo;
|
|
|
|
owner = "sobolevn";
|
|
|
|
rev = "v${version}";
|
2019-10-22 01:17:04 +02:00
|
|
|
sha256 = "0n268xlsd9p5f083sqwzpvsqg99fdk876mf8gihkydakrismc45b";
|
2017-11-11 00:12:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D git-secret $out/bin/git-secret
|
|
|
|
|
|
|
|
wrapProgram $out/bin/git-secret \
|
2018-12-20 11:09:42 +01:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ git gnupg gawk ]}"
|
2017-11-11 00:12:41 +01:00
|
|
|
|
|
|
|
mkdir $out/share
|
|
|
|
cp -r man $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A bash-tool to store your private data inside a git repository";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://git-secret.io";
|
2017-11-11 00:12:41 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.lo1tuma ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|