summary refs log tree commit diff
path: root/pkgs/tools/misc/fend
diff options
context:
space:
mode:
authorRhys Davies <rhys@memes.nz>2022-10-11 01:33:52 +1300
committerRhys Davies <rhys@memes.nz>2022-10-11 01:50:35 +1300
commit852bf558eb909143aacb7d40262746468be4a3d7 (patch)
tree1474cb2561f663c9be1a10a6add7c2ea2bbe09a6 /pkgs/tools/misc/fend
parent40d1ee5bb40f9cf934afd43692c23161fb71d5a4 (diff)
downloadnixpkgs-852bf558eb909143aacb7d40262746468be4a3d7.tar
nixpkgs-852bf558eb909143aacb7d40262746468be4a3d7.tar.gz
nixpkgs-852bf558eb909143aacb7d40262746468be4a3d7.tar.bz2
nixpkgs-852bf558eb909143aacb7d40262746468be4a3d7.tar.lz
nixpkgs-852bf558eb909143aacb7d40262746468be4a3d7.tar.xz
nixpkgs-852bf558eb909143aacb7d40262746468be4a3d7.tar.zst
nixpkgs-852bf558eb909143aacb7d40262746468be4a3d7.zip
fend: install man page
Diffstat (limited to 'pkgs/tools/misc/fend')
-rw-r--r--pkgs/tools/misc/fend/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fend/default.nix b/pkgs/tools/misc/fend/default.nix
index 7bb3cb200d3..453697e8a5c 100644
--- a/pkgs/tools/misc/fend/default.nix
+++ b/pkgs/tools/misc/fend/default.nix
@@ -3,6 +3,8 @@
 , fetchFromGitHub
 , rustPlatform
 , darwin
+, pandoc
+, installShellFiles
 }:
 
 rustPlatform.buildRustPackage rec {
@@ -18,8 +20,18 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "sha256-jGPS9x4DKQCXZkaJu9qIEqoxIu+1WraqfqxGFRV5z7A=";
 
+  nativeBuildInputs = [ pandoc installShellFiles ];
   buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
 
+  postBuild = ''
+    patchShebangs --build ./documentation/build.sh
+    ./documentation/build.sh
+  '';
+
+  preFixup = ''
+    installManPage documentation/fend.1
+  '';
+
   doInstallCheck = true;
 
   installCheckPhase = ''