Fix cfdg build

This commit is contained in:
Michael Raskin 2012-12-04 14:46:59 +04:00
parent 2ab2b27e93
commit 38323efd03
2 changed files with 9 additions and 4 deletions

View File

@ -1,8 +1,8 @@
a @ {libpng, bison, flex, fullDepEntry, ...} :
a @ {libpng, bison, flex, ffmpeg, fullDepEntry, ...} :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
libpng bison flex
libpng bison flex ffmpeg
];
in
rec {
@ -13,8 +13,12 @@ rec {
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doMake" "copyFiles"];
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/

View File

@ -522,6 +522,7 @@ let
cfdg = builderDefsPackage ../tools/graphics/cfdg {
inherit libpng bison flex;
ffmpeg = ffmpeg_1_0;
};
checkinstall = callPackage ../tools/package-management/checkinstall { };