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";
|
|
|
|
|
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";
|
|
|
|
};
|
2012-06-13 01:41:05 +02:00
|
|
|
|
|
|
|
buildInputs = [ recode ];
|
|
|
|
|
2012-03-29 09:15:40 +02:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i "s|/usr/|$out/|" Makefile
|
|
|
|
'';
|
2012-06-13 01:41:05 +02:00
|
|
|
|
2012-03-29 09:15:40 +02:00
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/games/fortune $out/bin/fortune
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2012-06-13 01:41:05 +02:00
|
|
|
description = "A program that displays a pseudorandom message from a database of quotations";
|
2012-03-29 09:15:40 +02:00
|
|
|
};
|
|
|
|
}
|