about summary refs log tree commit diff
path: root/pkgs/tools/misc/fortune
diff options
context:
space:
mode:
authorMatthew Bauer <matthew.bauer@obsidian.systems>2018-07-19 00:28:14 -0400
committerMatthew Bauer <matthew.bauer@obsidian.systems>2018-07-27 19:39:33 -0400
commit53bf234c85b7e386d939ac5913366e9e97c8c47d (patch)
treea2e768341078439d56b17fe1346a35f06669d113 /pkgs/tools/misc/fortune
parent0e707034b574946e7cd36fc57315b3e1e969a262 (diff)
fortune: remove gcc from closure
Fixup is only run on $out/bin not $out/games. Luckily fortune is
relocatable so just moving it to $out/bin works & reduces closure size.
Diffstat (limited to 'pkgs/tools/misc/fortune')
-rw-r--r--pkgs/tools/misc/fortune/default.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/tools/misc/fortune/default.nix b/pkgs/tools/misc/fortune/default.nix
index 5e6db9fdc2090..59c0396eebea3 100644
--- a/pkgs/tools/misc/fortune/default.nix
+++ b/pkgs/tools/misc/fortune/default.nix
@@ -2,24 +2,25 @@
 
 stdenv.mkDerivation {
   name = "fortune-mod-1.99.1";
-  
+
   src = fetchurl {
     url = http://ftp.de.debian.org/debian/pool/main/f/fortune-mod/fortune-mod_1.99.1.orig.tar.gz;
     sha256 = "1kpa2hgbglj5dbfasvl9wc1q3xpl91mqn3sfby46r4rwyzhswlgw";
   };
-  
+
   buildInputs = [ recode ];
-  
+
   preConfigure = ''
-    sed -i "s|/usr/|$out/|" Makefile 
+    sed -i "s|/usr/|$out/|" Makefile
   '';
 
   preBuild = ''
     makeFlagsArray=("CC=$CC" "REGEXDEFS=-DHAVE_REGEX_H -DPOSIX_REGEX" "LDFLAGS=")
   '';
-  
+
   postInstall = ''
-    ln -s $out/games/fortune $out/bin/fortune
+    mv $out/games/fortune $out/bin/fortune
+    rmdir $out/games
   '';
 
   meta = {