mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Fix cfdg build
This commit is contained in:
parent
2ab2b27e93
commit
38323efd03
@ -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/
|
||||
|
@ -522,6 +522,7 @@ let
|
||||
|
||||
cfdg = builderDefsPackage ../tools/graphics/cfdg {
|
||||
inherit libpng bison flex;
|
||||
ffmpeg = ffmpeg_1_0;
|
||||
};
|
||||
|
||||
checkinstall = callPackage ../tools/package-management/checkinstall { };
|
||||
|
Loading…
Reference in New Issue
Block a user