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