2012-12-04 14:46:59 +04:00
|
|
|
a @ {libpng, bison, flex, ffmpeg, fullDepEntry, ...} :
|
2010-02-22 13:46:49 +03:00
|
|
|
let
|
|
|
|
s = import ./src-for-default.nix;
|
|
|
|
buildInputs = with a; [
|
2012-12-04 14:46:59 +04:00
|
|
|
libpng bison flex ffmpeg
|
2010-02-22 13:46:49 +03:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchUrlFromSrcInfo s;
|
|
|
|
|
|
|
|
inherit (s) name;
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
2012-12-04 14:46:59 +04:00
|
|
|
phaseNames = ["doFixInc" "doMake" "copyFiles"];
|
|
|
|
|
|
|
|
doFixInc = a.fullDepEntry ''
|
|
|
|
sed -e "/YY_NO_UNISTD/a#include <stdio.h>" -i src-common/cfdg.l
|
|
|
|
'' ["doUnpack" "minInit"];
|
|
|
|
|
2010-02-22 13:46:49 +03:00
|
|
|
copyFiles = a.fullDepEntry ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/bin
|
2010-02-22 13:46:49 +03:00
|
|
|
cp cfdg $out/bin/
|
|
|
|
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/share/doc/${name}
|
2010-02-22 13:46:49 +03: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;
|
|
|
|
};
|
|
|
|
}
|