2012-03-29 09:15:40 +02:00
|
|
|
{ stdenv, fetchurl, recode }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2012-06-13 01:41:05 +02:00
|
|
|
name = "fortune-mod-1.99.1";
|
2018-07-19 06:28:14 +02:00
|
|
|
|
2012-03-29 09:15:40 +02: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 06:28:14 +02:00
|
|
|
|
2012-06-13 01:41:05 +02:00
|
|
|
buildInputs = [ recode ];
|
2018-07-19 06:28:14 +02:00
|
|
|
|
2012-03-29 09:15:40 +02:00
|
|
|
preConfigure = ''
|
2018-07-19 06:28:14 +02:00
|
|
|
sed -i "s|/usr/|$out/|" Makefile
|
2012-03-29 09:15:40 +02:00
|
|
|
'';
|
2015-01-29 19:14:49 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=("CC=$CC" "REGEXDEFS=-DHAVE_REGEX_H -DPOSIX_REGEX" "LDFLAGS=")
|
|
|
|
'';
|
2018-07-19 06:28:14 +02:00
|
|
|
|
2012-03-29 09:15:40 +02:00
|
|
|
postInstall = ''
|
2018-07-19 06:28:14 +02:00
|
|
|
mv $out/games/fortune $out/bin/fortune
|
|
|
|
rmdir $out/games
|
2012-03-29 09:15:40 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2012-06-13 01:41:05 +02:00
|
|
|
description = "A program that displays a pseudorandom message from a database of quotations";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2012-03-29 09:15:40 +02:00
|
|
|
};
|
|
|
|
}
|