git.iko.soy/typeable/nixpkgs
on master help sign in
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.)

commit7ca75fad04938dffbb6afbd5922808c6402e9987 authorBryan Gardiner <bog@khumba.net> dateSun 22 Mar 2020, 13:38 (7 years ago) parent667df74
1 file changed+6
pkgs/applications/misc/pydf/default.nix+6
pkgs/applications/misc/pydf/default.nix+6
@@ -9,6 +9,12 @@ python3Packages.buildPythonPackage rec {
99 sha256 = "7f47a7c3abfceb1ac04fc009ded538df1ae449c31203962a1471a4eb3bf21439";
1010 };
1111
12+ postInstall = ''
13+ mkdir -p $out/share/man/man1 $out/share/pydf
14+ install -t $out/share/pydf -m 444 pydfrc
15+ install -t $out/share/man/man1 -m 444 pydf.1
16+ '';
17+
1218 meta = with stdenv.lib; {
1319 description = "colourised df(1)-clone";
1420 homepage = http://kassiopeia.juls.savba.sk/~garabik/software/pydf/;