2010-02-22 11:46:49 +01:00
|
|
|
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 ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2010-02-22 11:46:49 +01:00
|
|
|
cp cfdg $out/bin/
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/doc/${name}
|
2010-02-22 11:46:49 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|