3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/fortune/default.nix
Eelco Dolstra e0b38f88db * Fortune: use a "-" instead of a "_" to separate the package name
from the version.  Otherwise "nix-env -i fortune-mod" doesn't work.
  (Reported on IRC.)

svn path=/nixpkgs/trunk/; revision=34487
2012-06-12 23:41:05 +00:00

25 lines
567 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
'';
postInstall = ''
ln -s $out/games/fortune $out/bin/fortune
'';
meta = {
description = "A program that displays a pseudorandom message from a database of quotations";
};
}