diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-02-22 10:46:49 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-02-22 10:46:49 +0000 |
commit | 4b22e9d61d79d06d4fb2c94f27092224ef0adc2e (patch) | |
tree | 783e4943f00edea60c95921c4b3e5b0a4b2158e7 /pkgs/tools | |
parent | 454fb58a39610db32c8b4abdf3299254cedfda84 (diff) |
Adding cfdg - context-free design grammar
svn path=/nixpkgs/trunk/; revision=20166
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/graphics/cfdg/default.nix | 34 | ||||
-rw-r--r-- | pkgs/tools/graphics/cfdg/src-for-default.nix | 9 | ||||
-rw-r--r-- | pkgs/tools/graphics/cfdg/src-info-for-default.nix | 6 |
3 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/cfdg/default.nix b/pkgs/tools/graphics/cfdg/default.nix new file mode 100644 index 000000000000..435305f1e2af --- /dev/null +++ b/pkgs/tools/graphics/cfdg/default.nix @@ -0,0 +1,34 @@ +a @ {libpng, bison, flex, fullDepEntry, ...} : +let + s = import ./src-for-default.nix; + buildInputs = with a; [ + libpng bison flex + ]; +in +rec { + src = a.fetchUrlFromSrcInfo s; + + inherit (s) name; + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doMake" "copyFiles"]; + + copyFiles = a.fullDepEntry '' + ensureDir $out/bin + cp cfdg $out/bin/ + + ensureDir $out/share/doc/${name} + cp *.txt $out/share/doc/${name} + '' ["defEnsureDir" "doMake"]; + + meta = { + description = "Context-free design grammar - a tool for graphics generation"; + maintainers = [ + a.lib.maintainers.raskin + ]; + platforms = with a.lib.platforms; + linux; + }; +} diff --git a/pkgs/tools/graphics/cfdg/src-for-default.nix b/pkgs/tools/graphics/cfdg/src-for-default.nix new file mode 100644 index 000000000000..6ad1394650e9 --- /dev/null +++ b/pkgs/tools/graphics/cfdg/src-for-default.nix @@ -0,0 +1,9 @@ +rec { + version="2.2.1"; + name="cfdg-2.2.1"; + hash="1zf3cls5h4fnhdxhdkdwsm4pav6df1ljr9jwp26dbqa4z2q3r8p4"; + url="http://www.contextfreeart.org/download/ContextFreeSource2.2.1.tgz"; + advertisedUrl="http://www.contextfreeart.org/download/ContextFreeSource2.2.1.tgz"; + + +} diff --git a/pkgs/tools/graphics/cfdg/src-info-for-default.nix b/pkgs/tools/graphics/cfdg/src-info-for-default.nix new file mode 100644 index 000000000000..42295c82216e --- /dev/null +++ b/pkgs/tools/graphics/cfdg/src-info-for-default.nix @@ -0,0 +1,6 @@ +{ + downloadPage = "http://contextfreeart.org/mediawiki/index.php/Download_page"; + baseName = "cfdg"; + sourceRegexp = ''.*[.]tgz''; + versionExtractorSedScript = ''s/[^0-9]*([0-9.]*)[.]tgz/\1/''; +} |