about summary refs log tree commit diff
path: root/pkgs/applications/misc/pydf
diff options
context:
space:
mode:
authorBryan Gardiner <bog@khumba.net>2020-03-22 13:38:02 -0700
committerBryan Gardiner <bog@khumba.net>2020-03-22 13:53:33 -0700
commit7ca75fad04938dffbb6afbd5922808c6402e9987 (patch)
treeef745a64af67b227cc93b7b834cc7ade9a2ca7b4 /pkgs/applications/misc/pydf
parent667df74501281062a3af9e7a4e76762a4370b5fc (diff)
pydf: install man page and default config file
This makes the pydf derivation install the package's man page and default config
file, so that `man pydf` works and the user has a default config file to work
from.  This default config file is placed in `share/pydf/` and isn't read by
default; pydf still looks in `/etc` and `$HOME` instead.  (The file is identical
to the defaults in the executable itself except for additional colours applied
to the `full_fs_colour` setting.)
Diffstat (limited to 'pkgs/applications/misc/pydf')
-rw-r--r--pkgs/applications/misc/pydf/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/misc/pydf/default.nix b/pkgs/applications/misc/pydf/default.nix
index bfbee1bea24d5..ae29993a79a13 100644
--- a/pkgs/applications/misc/pydf/default.nix
+++ b/pkgs/applications/misc/pydf/default.nix
@@ -9,6 +9,12 @@ python3Packages.buildPythonPackage rec {
     sha256 = "7f47a7c3abfceb1ac04fc009ded538df1ae449c31203962a1471a4eb3bf21439";
   };
 
+  postInstall = ''
+    mkdir -p $out/share/man/man1 $out/share/pydf
+    install -t $out/share/pydf -m 444 pydfrc
+    install -t $out/share/man/man1 -m 444 pydf.1
+  '';
+
   meta = with stdenv.lib; {
     description = "colourised df(1)-clone";
     homepage = http://kassiopeia.juls.savba.sk/~garabik/software/pydf/;