1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 18:03:22 +00:00
nixpkgs/pkgs/tools/graphics/cfdg/default.nix

39 lines
900 B
Nix
Raw Normal View History

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