at 16.09-beta 37 lines 935 B view raw
1{stdenv, fetchurl, makeWrapper, ocaml, ncurses}: 2let 3 pname = "omake"; 4 version = "0.9.8.5-3"; 5 webpage = "http://omake.metaprl.org"; 6in 7stdenv.mkDerivation { 8 9 name = "${pname}-${version}"; 10 11 src = fetchurl { 12 url = "mirror://debian/pool/main/o/omake/omake_${version}.orig.tar.gz"; 13 sha256 = "1bfxbsimfivq0ar2g5fkzvr5ql97n5dg562pfyd29y4zyh4mwrsv"; 14 }; 15 patchFlags = "-p0"; 16 patches = [ ./omake-build-0.9.8.5.diff ./omake-lm_printf-gcc44.diff ]; 17 18 buildInputs = [ ocaml makeWrapper ncurses ]; 19 20 phases = "unpackPhase patchPhase buildPhase"; 21 buildPhase = '' 22 make bootstrap 23 make PREFIX=$out all 24 make PREFIX=$out install 25 ''; 26# prefixKey = "-prefix "; 27# 28# configureFlags = if transitional then "--transitional" else "--strict"; 29# 30# buildFlags = "world.opt"; 31 32 meta = { 33 description = "A build system designed for scalability and portability"; 34 homepage = "${webpage}"; 35 license = "GPL"; 36 }; 37}