3
0
Fork 0
forked from mirrors/nixpkgs

feh: build and install man pages

This commit is contained in:
Franz Pletz 2017-06-17 19:06:20 +02:00
parent aa06a6e00b
commit 4e8d44c2cd
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "09f5rfzls4h5jcrp7ylwbiljp5qzc2nbw9p2csv0pnlaixj69gil";
};
outputs = [ "out" "doc" ];
outputs = [ "out" "man" "doc" ];
nativeBuildInputs = [ makeWrapper xorg.libXt ]
++ optionals doCheck [ perlPackages.TestCommand perlPackages.TestHarness ];
@ -22,12 +22,19 @@ stdenv.mkDerivation rec {
preBuild = ''
makeFlags="PREFIX=$out exif=1"
'';
'';
postBuild = ''
pushd man
make
popd
'';
postInstall = ''
wrapProgram "$out/bin/feh" --prefix PATH : "${libjpeg.bin}/bin" \
--add-flags '--theme=feh'
'';
install -D -m 644 man/*.1 $out/share/man/man1
'';
checkPhase = ''
PERL5LIB="${perlPackages.TestCommand}/lib/perl5/site_perl" make test