summary refs log tree commit diff
path: root/pkgs/applications/graphics/feh
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2017-06-17 19:06:20 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2017-06-17 19:06:20 +0200
commit4e8d44c2cdaccc030bd30b3dd8b78eea68391fb5 (patch)
tree95b802da55507fc72ce86908ad5c6622150ee7df /pkgs/applications/graphics/feh
parentaa06a6e00b7f021ecf5e057929db978d6485bb26 (diff)
downloadnixpkgs-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.nix17
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
   '';