Adding dadadodo - a markov chain-based text generator
svn path=/nixpkgs/trunk/; revision=16206
This commit is contained in:
parent
f4a5ef043d
commit
e9dddc50ab
32
pkgs/tools/text/dadadodo/default.nix
Normal file
32
pkgs/tools/text/dadadodo/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
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 (''
|
||||||
|
ensureDir $out/bin
|
||||||
|
cp dadadodo $out/bin
|
||||||
|
'') [ "minInit" "doMake" "defEnsureDir"];
|
||||||
|
|
||||||
|
name = "dadadodo-" + version;
|
||||||
|
meta = {
|
||||||
|
description = "Markov chain-based text generator";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user