about summary refs log tree commit diff
path: root/pkgs/tools/networking/fdm
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-07-06 21:59:53 +0200
committerGitHub <noreply@github.com>2023-07-06 19:59:53 +0000
commit04eceedb4fe3641224e776efd7fc6d4a57aa5731 (patch)
treef7848379fb23e77791b7f7744e0f8828c86c69a8 /pkgs/tools/networking/fdm
parent8a9a984d2efdf797ac38083a7eb25076bffea3f1 (diff)
fdm: Install helper script, manual, and examples (#241310)
Diffstat (limited to 'pkgs/tools/networking/fdm')
-rw-r--r--pkgs/tools/networking/fdm/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/tools/networking/fdm/default.nix b/pkgs/tools/networking/fdm/default.nix
index 7ef5cf0b4edde..f0d65a03d8951 100644
--- a/pkgs/tools/networking/fdm/default.nix
+++ b/pkgs/tools/networking/fdm/default.nix
@@ -14,6 +14,13 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ autoreconfHook ];
   buildInputs = [ openssl tdb zlib flex bison ];
 
+  postInstall = ''
+    install fdm-sanitize $out/bin
+    mkdir -p $out/share/doc/${pname}
+    install -m644 MANUAL $out/share/doc/${pname}
+    cp -R examples $out/share/doc/${pname}
+  '';
+
   meta = with lib; {
     description = "Mail fetching and delivery tool - should do the job of getmail and procmail";
     maintainers = with maintainers; [ raskin ];