mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
076946d277
svn path=/nixpkgs/trunk/; revision=33462
21 lines
610 B
Nix
21 lines
610 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 = "fortune is a simple program that displays a pseudorandom message from a database of quotations that first appeared in Version 7 Unix.";
|
|
};
|
|
}
|