Adding cfdg - context-free design grammar
svn path=/nixpkgs/trunk/; revision=20166
This commit is contained in:
parent
454fb58a39
commit
4b22e9d61d
34
pkgs/tools/graphics/cfdg/default.nix
Normal file
34
pkgs/tools/graphics/cfdg/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
9
pkgs/tools/graphics/cfdg/src-for-default.nix
Normal file
9
pkgs/tools/graphics/cfdg/src-for-default.nix
Normal file
@ -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";
|
||||
|
||||
|
||||
}
|
6
pkgs/tools/graphics/cfdg/src-info-for-default.nix
Normal file
6
pkgs/tools/graphics/cfdg/src-info-for-default.nix
Normal file
@ -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/'';
|
||||
}
|
@ -499,6 +499,10 @@ let
|
||||
inherit fetchurl stdenv cmake libcap zlib bzip2;
|
||||
};
|
||||
|
||||
cfdg = builderDefsPackage ../tools/graphics/cfdg {
|
||||
inherit libpng bison flex;
|
||||
};
|
||||
|
||||
checkinstall = import ../tools/package-management/checkinstall {
|
||||
inherit fetchurl stdenv gettext;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user