We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 8702fd3 commit 66fdb94Copy full SHA for 66fdb94
pkgs/tools/text/gawk/default.nix
@@ -32,10 +32,17 @@ stdenv.mkDerivation rec {
32
configureFlags = stdenv.lib.optional (stdenv.system != "x86_64-cygwin") "--with-libsigsegv-prefix=${libsigsegv}"
33
++ [(if interactive then "--with-readline=${readline.dev}" else "--without-readline")];
34
35
- postInstall = ''
36
- rm $out/bin/gawk-*
37
- ln -s $man/share/man/man1/gawk.1 $man/share/man/man1/awk.1
38
- '';
+ postInstall =
+ if interactive then
+ ''
+ rm "$out"/bin/gawk-*
39
+ ln -s gawk.1 "''${!outputMan}"/share/man/man1/awk.1
40
41
+ else # TODO: remove this other branch on a stdenv rebuild
42
43
+ rm $out/bin/gawk-*
44
+ ln -s $man/share/man/man1/gawk.1 $man/share/man/man1/awk.1
45
+ '';
46
47
meta = with stdenv.lib; {
48
homepage = http://www.gnu.org/software/gawk/;
0 commit comments