nixpkgs/pkgs/tools/text/dadadodo/default.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

32 lines
701 B
Nix

a :
let
fetchurl = a.fetchurl;
version = a.lib.attrByPath ["version"] "1.04" a;
buildInputs = with a; [
];
in
rec {
src = fetchurl {
url = "http://www.jwz.org/dadadodo/dadadodo-${version}.tar.gz";
sha256 = "1pzwp3mim58afjrc92yx65mmgr1c834s1v6z4f4gyihwjn8bn3if";
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doMake" "doDeploy"];
installFlags = "PREFIX=$out";
doDeploy = a.fullDepEntry (''
mkdir -p $out/bin
cp dadadodo $out/bin
'') [ "minInit" "doMake" "defEnsureDir"];
name = "dadadodo-" + version;
meta = {
description = "Markov chain-based text generator";
};
}