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-11 20:52:07 -06:00
parent 1ba9fd335d
commit bfbfe941ab
28 changed files with 149 additions and 260 deletions

View File

@@ -233,7 +233,7 @@ galera = stdenv.mkDerivation rec {
buildInputs = [ asio boost check openssl scons ];
patchPhase = ''
postPatch = ''
substituteInPlace SConstruct \
--replace "boost_library_path = '''" "boost_library_path = '${boost}/lib'"
'';
@@ -243,11 +243,9 @@ galera = stdenv.mkDerivation rec {
export LIBPATH="${galeraLibs}/lib"
'';
buildPhase = ''
scons -j$NIX_BUILD_CORES ssl=1 system_asio=1 strict_build_flags=0
'';
sconsFlags = "ssl=1 system_asio=1 strict_build_flags=0";
installPhase = ''
postInstall = ''
# copied with modifications from scripts/packages/freebsd.sh
GALERA_LICENSE_DIR="$share/licenses/${name}"
install -d $out/{bin,lib/galera,share/doc/galera,$GALERA_LICENSE_DIR}