diff options
author | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2016-02-25 02:22:43 +0100 |
---|---|---|
committer | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2016-02-25 16:21:46 +0100 |
commit | ebc9ba92d26ac1f9c1fa8237ba2ad5f352f9fc3f (patch) | |
tree | 159bd510657b8b0ac8b76a6190f4f5f462754e3b /pkgs/tools/system/proot/default.nix | |
parent | e82a080303c32ec0ce7a4de0c6ccc6591be8d12e (diff) | |
download | nixpkgs-ebc9ba92d26ac1f9c1fa8237ba2ad5f352f9fc3f.tar nixpkgs-ebc9ba92d26ac1f9c1fa8237ba2ad5f352f9fc3f.tar.gz nixpkgs-ebc9ba92d26ac1f9c1fa8237ba2ad5f352f9fc3f.tar.bz2 nixpkgs-ebc9ba92d26ac1f9c1fa8237ba2ad5f352f9fc3f.tar.lz nixpkgs-ebc9ba92d26ac1f9c1fa8237ba2ad5f352f9fc3f.tar.xz nixpkgs-ebc9ba92d26ac1f9c1fa8237ba2ad5f352f9fc3f.tar.zst nixpkgs-ebc9ba92d26ac1f9c1fa8237ba2ad5f352f9fc3f.zip |
proot: generate and install manual page
Diffstat (limited to 'pkgs/tools/system/proot/default.nix')
-rw-r--r-- | pkgs/tools/system/proot/default.nix | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/pkgs/tools/system/proot/default.nix b/pkgs/tools/system/proot/default.nix index be3cffb47eb..a5d90bae932 100644 --- a/pkgs/tools/system/proot/default.nix +++ b/pkgs/tools/system/proot/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchgit, talloc, enableStatic ? false }: +{ stdenv, fetchgit, talloc, docutils +, enableStatic ? false }: stdenv.mkDerivation rec { name = "proot-${version}"; @@ -11,14 +12,25 @@ stdenv.mkDerivation rec { }; buildInputs = [ talloc ]; + nativeBuildInputs = [ docutils ]; + + enableParallelBuilding = true; preBuild = stdenv.lib.optionalString enableStatic '' 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; { homepage = http://proot.me; |