Skip to content

Commit 66fdb94

Browse files
committedJun 18, 2017
gawkInteractive: fix build after 04d4d14
(Without causing a mass rebuild for now.)
1 parent 8702fd3 commit 66fdb94

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
 

‎pkgs/tools/text/gawk/default.nix

+11-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,17 @@ stdenv.mkDerivation rec {
3232
configureFlags = stdenv.lib.optional (stdenv.system != "x86_64-cygwin") "--with-libsigsegv-prefix=${libsigsegv}"
3333
++ [(if interactive then "--with-readline=${readline.dev}" else "--without-readline")];
3434

35-
postInstall = ''
36-
rm $out/bin/gawk-*
37-
ln -s $man/share/man/man1/gawk.1 $man/share/man/man1/awk.1
38-
'';
35+
postInstall =
36+
if interactive then
37+
''
38+
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+
'';
3946

4047
meta = with stdenv.lib; {
4148
homepage = http://www.gnu.org/software/gawk/;

0 commit comments

Comments
 (0)
Please sign in to comment.