1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/graphics/cfdg/default.nix
Michael Raskin 4b22e9d61d Adding cfdg - context-free design grammar
svn path=/nixpkgs/trunk/; revision=20166
2010-02-22 10:46:49 +00:00

35 lines
745 B
Nix

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;
};
}