diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-06-17 19:06:20 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-06-17 19:06:20 +0200 |
commit | 4e8d44c2cdaccc030bd30b3dd8b78eea68391fb5 (patch) | |
tree | 95b802da55507fc72ce86908ad5c6622150ee7df /pkgs/applications/graphics/feh | |
parent | aa06a6e00b7f021ecf5e057929db978d6485bb26 (diff) | |
download | nixpkgs-4e8d44c2cdaccc030bd30b3dd8b78eea68391fb5.tar nixpkgs-4e8d44c2cdaccc030bd30b3dd8b78eea68391fb5.tar.gz nixpkgs-4e8d44c2cdaccc030bd30b3dd8b78eea68391fb5.tar.bz2 nixpkgs-4e8d44c2cdaccc030bd30b3dd8b78eea68391fb5.tar.lz nixpkgs-4e8d44c2cdaccc030bd30b3dd8b78eea68391fb5.tar.xz nixpkgs-4e8d44c2cdaccc030bd30b3dd8b78eea68391fb5.tar.zst nixpkgs-4e8d44c2cdaccc030bd30b3dd8b78eea68391fb5.zip |
feh: build and install man pages
Diffstat (limited to 'pkgs/applications/graphics/feh')
-rw-r--r-- | pkgs/applications/graphics/feh/default.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/applications/graphics/feh/default.nix b/pkgs/applications/graphics/feh/default.nix index 035a275618c..b7949b4d4f9 100644 --- a/pkgs/applications/graphics/feh/default.nix +++ b/pkgs/applications/graphics/feh/default.nix @@ -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,13 +22,20 @@ 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' - ''; - + --add-flags '--theme=feh' + install -D -m 644 man/*.1 $out/share/man/man1 + ''; + checkPhase = '' PERL5LIB="${perlPackages.TestCommand}/lib/perl5/site_perl" make test ''; |