at v192 57 lines 1.3 kB view raw
1x@{builderDefsPackage 2 , texinfo, allegro, perl 3 , ...}: 4builderDefsPackage 5(a : 6let 7 helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 8 []; 9 10 buildInputs = map (n: builtins.getAttr n x) 11 (builtins.attrNames (builtins.removeAttrs x helperArgNames)); 12 sourceInfo = rec { 13 baseName="cgui"; 14 version="2.0.3"; 15 name="${baseName}-${version}"; 16 project="${baseName}"; 17 url="mirror://sourceforge/project/${project}/${version}/${name}.tar.gz"; 18 hash="00kk4xaw68m44awy8zq4g5plx372swwccvzshn68a0a8f3f2wi4x"; 19 }; 20in 21rec { 22 src = a.fetchurl { 23 url = sourceInfo.url; 24 sha256 = sourceInfo.hash; 25 }; 26 27 inherit (sourceInfo) name version; 28 inherit buildInputs; 29 30 /* doConfigure should be removed if not needed */ 31 phaseNames = ["genMakefile" "doMakeInstall"]; 32 33 genMakefile = a.fullDepEntry ('' 34 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC" 35 sh fix.sh unix 36 '') ["minInit" "doUnpack" "addInputs"]; 37 38 makeFlags = [ 39 "SYSTEM_DIR=$out" 40 ]; 41 42 meta = { 43 description = "A multiplatform basic GUI library"; 44 maintainers = with a.lib.maintainers; 45 [ 46 raskin 47 ]; 48 platforms = with a.lib.platforms; 49 linux; 50 }; 51 passthru = { 52 updateInfo = { 53 downloadPage = "http://sourceforge.net/projects/cgui/files/"; 54 }; 55 }; 56}) x 57