mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
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.
This commit is contained in:
parent
0e707034b5
commit
53bf234c85
1 changed files with 7 additions and 6 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue