git-crypt: include man pages in output
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
{ 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}";
|
name = "git-crypt-${version}";
|
||||||
@@ -12,6 +14,8 @@ stdenv.mkDerivation rec {
|
|||||||
inherit name;
|
inherit name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ libxslt ];
|
||||||
|
|
||||||
buildInputs = [ openssl makeWrapper ];
|
buildInputs = [ openssl makeWrapper ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
@@ -19,9 +23,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; {
|
||||||
|
|||||||
Reference in New Issue
Block a user