treewide: use scons setup hook

Lots of packages can use it. Here is the list:

- jackmix
- klick
- mixx
- nova-filters
- rhvoice
- giv
- mypaint
- swift-im
- bombono
- mapnik
- serf
- nuitka
- pyexiv2
- godot
- hammer
- toluapp
- btanks
- dxx-rebirth
- endless-sky
- globulation
- the-powder-toy
- fceux
- gpsd
- mongodb
- rippled
- mariadb
- lprof
This commit is contained in:
Matthew Bauer
2018-11-13 19:14:10 -06:00
parent 1ba9fd335d
commit bfbfe941ab
28 changed files with 149 additions and 260 deletions
+5 -7
View File
@@ -5,7 +5,8 @@
*/
stdenv.mkDerivation {
name = "lprof-1.11.4.1";
buildInputs = [ scons qt3 lcms1 libtiff vigra ];
nativeBuildInputs = [ scons ];
buildInputs = [ qt3 lcms1 libtiff vigra ];
hardeningDisable = [ "format" ];
@@ -19,14 +20,11 @@ stdenv.mkDerivation {
sha256 = "0q8x24fm5yyvm151xrl3l03p7hvvciqnkbviprfnvlr0lyg9wsrn";
};
buildPhase = ''
mkdir -p $out
sconsFlags = "SYSLIBS=1";
preBuild = ''
export CXX=g++
scons PREFIX=$out SYSLIBS=1 install
'';
installPhase = ":";
prefixKey = "PREFIX=";
patches = [ ./lcms-1.17.patch ./keep-environment.patch ];