mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 23:52:33 +00:00
21f17d69f6
Build-tested on x86_64 Linux & Mac.
30 lines
715 B
Nix
30 lines
715 B
Nix
{ stdenv, fetchurl, recode }:
|
|
|
|
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
|
|
'';
|
|
|
|
preBuild = ''
|
|
makeFlagsArray=("CC=$CC" "REGEXDEFS=-DHAVE_REGEX_H -DPOSIX_REGEX" "LDFLAGS=")
|
|
'';
|
|
|
|
postInstall = ''
|
|
ln -s $out/games/fortune $out/bin/fortune
|
|
'';
|
|
|
|
meta = {
|
|
description = "A program that displays a pseudorandom message from a database of quotations";
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|