Merge pull request #169651 from SuperSandro2000/git-crypt
This commit is contained in:
commit
889e84c7d0
@ -1,23 +1,32 @@
|
||||
{ fetchFromGitHub, git, gnupg, makeWrapper, openssl, lib, stdenv
|
||||
, libxslt, docbook_xsl
|
||||
{ fetchFromGitHub
|
||||
, git
|
||||
, gnupg
|
||||
, makeWrapper
|
||||
, openssl
|
||||
, lib
|
||||
, stdenv
|
||||
, libxslt
|
||||
, docbook_xsl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "git-crypt";
|
||||
version = "0.6.0";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AGWA";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "13m9y0m6gc3mlw3pqv9x4i0him2ycbysizigdvdanhh514kga602";
|
||||
sha256 = "sha256-GcGCX6hoKL+sNLAeGEzZpaM+cdFjcNlwYExfOFEPi0I=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ libxslt makeWrapper ];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
patchPhase = ''
|
||||
postPatch = ''
|
||||
substituteInPlace commands.cpp \
|
||||
--replace '(escape_shell_arg(our_exe_path()))' '= "git-crypt"'
|
||||
'';
|
||||
@ -29,7 +38,8 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/git-crypt --prefix PATH : $out/bin:${git}/bin:${gnupg}/bin
|
||||
wrapProgram $out/bin/git-crypt \
|
||||
--suffix PATH : ${lib.makeBinPath [ git gnupg ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
@ -48,7 +58,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
downloadPage = "https://github.com/AGWA/git-crypt/releases";
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.dochang ];
|
||||
maintainers = with maintainers; [ dochang SuperSandro2000 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user