Merge pull request #64936 from nicknovitski/man-git-crypt

git-crypt: include man pages in output
This commit is contained in:
worldofpeace 2019-07-16 22:00:47 -04:00 committed by GitHub
commit 6394fa54df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +1,20 @@
{ fetchFromGitHub, git, gnupg, makeWrapper, openssl, stdenv }: { fetchFromGitHub, git, gnupg, makeWrapper, openssl, stdenv
, libxslt, docbook_xsl
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "git-crypt-${version}"; pname = "git-crypt";
version = "0.6.0"; version = "0.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "AGWA"; owner = "AGWA";
repo = "git-crypt"; repo = pname;
rev = "${version}"; rev = version;
sha256 = "13m9y0m6gc3mlw3pqv9x4i0him2ycbysizigdvdanhh514kga602"; sha256 = "13m9y0m6gc3mlw3pqv9x4i0him2ycbysizigdvdanhh514kga602";
inherit name;
}; };
nativeBuildInputs = [ libxslt ];
buildInputs = [ openssl makeWrapper ]; buildInputs = [ openssl makeWrapper ];
patchPhase = '' patchPhase = ''
@ -19,9 +22,14 @@ stdenv.mkDerivation rec {
--replace '(escape_shell_arg(our_exe_path()))' '= "git-crypt"' --replace '(escape_shell_arg(our_exe_path()))' '= "git-crypt"'
''; '';
installPhase = '' makeFlags = [
make install PREFIX=$out "PREFIX=${placeholder ''out''}"
wrapProgram $out/bin/* --prefix PATH : $out/bin:${git}/bin:${gnupg}/bin "ENABLE_MAN=yes"
"DOCBOOK_XSL=${docbook_xsl}/share/xml/docbook-xsl-nons/manpages/docbook.xsl"
];
postFixup = ''
wrapProgram $out/bin/git-crypt --prefix PATH : $out/bin:${git}/bin:${gnupg}/bin
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {