proot: generate and install manual page
This commit is contained in:
parent
e82a080303
commit
ebc9ba92d2
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchgit, talloc, enableStatic ? false }:
|
{ stdenv, fetchgit, talloc, docutils
|
||||||
|
, enableStatic ? false }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "proot-${version}";
|
name = "proot-${version}";
|
||||||
@ -11,14 +12,25 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ talloc ];
|
buildInputs = [ talloc ];
|
||||||
|
nativeBuildInputs = [ docutils ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
preBuild = stdenv.lib.optionalString enableStatic ''
|
preBuild = stdenv.lib.optionalString enableStatic ''
|
||||||
export LDFLAGS="-static -L${talloc}/lib"
|
export LDFLAGS="-static -L${talloc}/lib"
|
||||||
'' + ''
|
|
||||||
substituteInPlace GNUmakefile --replace "/usr/local" "$out"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sourceRoot = "proot/src";
|
makeFlags = [ "-C src" ];
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
make -C doc proot/man.1
|
||||||
|
'';
|
||||||
|
|
||||||
|
installFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -Dm644 doc/proot/man.1 $out/share/man/man1/proot.1
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://proot.me;
|
homepage = http://proot.me;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user