2012-03-29 08:15:40 +01:00
|
|
|
{ stdenv, fetchurl, recode }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2012-06-13 00:41:05 +01:00
|
|
|
name = "fortune-mod-1.99.1";
|
2018-07-19 05:28:14 +01:00
|
|
|
|
2012-03-29 08:15:40 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://ftp.de.debian.org/debian/pool/main/f/fortune-mod/fortune-mod_1.99.1.orig.tar.gz;
|
|
|
|
sha256 = "1kpa2hgbglj5dbfasvl9wc1q3xpl91mqn3sfby46r4rwyzhswlgw";
|
|
|
|
};
|
2018-07-19 05:28:14 +01:00
|
|
|
|
2012-06-13 00:41:05 +01:00
|
|
|
buildInputs = [ recode ];
|
2018-07-19 05:28:14 +01:00
|
|
|
|
2012-03-29 08:15:40 +01:00
|
|
|
preConfigure = ''
|
2018-07-19 05:28:14 +01:00
|
|
|
sed -i "s|/usr/|$out/|" Makefile
|
2012-03-29 08:15:40 +01:00
|
|
|
'';
|
2015-01-29 18:14:49 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=("CC=$CC" "REGEXDEFS=-DHAVE_REGEX_H -DPOSIX_REGEX" "LDFLAGS=")
|
|
|
|
'';
|
2018-07-19 05:28:14 +01:00
|
|
|
|
2012-03-29 08:15:40 +01:00
|
|
|
postInstall = ''
|
2018-07-19 05:28:14 +01:00
|
|
|
mv $out/games/fortune $out/bin/fortune
|
|
|
|
rmdir $out/games
|
2012-03-29 08:15:40 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2012-06-13 00:41:05 +01:00
|
|
|
description = "A program that displays a pseudorandom message from a database of quotations";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2012-03-29 08:15:40 +01:00
|
|
|
};
|
|
|
|
}
|