at v192 38 lines 900 B view raw
1a @ {libpng, bison, flex, ffmpeg, fullDepEntry, ...} : 2let 3 s = import ./src-for-default.nix; 4 buildInputs = with a; [ 5 libpng bison flex ffmpeg 6 ]; 7in 8rec { 9 src = a.fetchUrlFromSrcInfo s; 10 11 inherit (s) name; 12 inherit buildInputs; 13 configureFlags = []; 14 15 /* doConfigure should be removed if not needed */ 16 phaseNames = ["doFixInc" "doMake" "copyFiles"]; 17 18 doFixInc = a.fullDepEntry '' 19 sed -e "/YY_NO_UNISTD/a#include <stdio.h>" -i src-common/cfdg.l 20 '' ["doUnpack" "minInit"]; 21 22 copyFiles = a.fullDepEntry '' 23 mkdir -p $out/bin 24 cp cfdg $out/bin/ 25 26 mkdir -p $out/share/doc/${name} 27 cp *.txt $out/share/doc/${name} 28 '' ["defEnsureDir" "doMake"]; 29 30 meta = { 31 description = "Context-free design grammar - a tool for graphics generation"; 32 maintainers = [ 33 a.lib.maintainers.raskin 34 ]; 35 platforms = with a.lib.platforms; 36 linux; 37 }; 38}