diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2012-03-29 07:15:40 +0000 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2012-03-29 07:15:40 +0000 |
commit | 076946d277198c4ef088ed96d9420db875fff5f2 (patch) | |
tree | a7689151f873f1d987163676c376b683df8fa83d /pkgs/tools | |
parent | ec15b98631f7da3ff1908a148d8a811f3e7edae8 (diff) |
add fortune
svn path=/nixpkgs/trunk/; revision=33462
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/fortune/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fortune/default.nix b/pkgs/tools/misc/fortune/default.nix new file mode 100644 index 0000000000000..8e44b0998a2bf --- /dev/null +++ b/pkgs/tools/misc/fortune/default.nix @@ -0,0 +1,20 @@ +{ 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 = "fortune is a simple program that displays a pseudorandom message from a database of quotations that first appeared in Version 7 Unix."; + }; +} |