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:
@@ -33,10 +33,9 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildPhase = ''
|
||||
scons target=release_debug platform=x11 prefix=$out -j $NIX_BUILD_CORES \
|
||||
${lib.concatStringsSep " "
|
||||
(lib.mapAttrsToList (k: v: "${k}=${builtins.toJSON v}") options)}
|
||||
sconsFlags = "target=release_debug platform=x11";
|
||||
preConfigure = ''
|
||||
sconsFlags+=" ${lib.concatStringsSep " " (lib.mapAttrsToList (k: v: "${k}=${builtins.toJSON v}") options)}"
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" "man" ];
|
||||
|
||||
@@ -12,8 +12,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ glib python scons ];
|
||||
buildPhase = "scons prefix=$out";
|
||||
installPhase = "scons prefix=$out install";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A bit-oriented parser combinator library";
|
||||
@@ -28,5 +26,5 @@ stdenv.mkDerivation rec {
|
||||
homepage = https://github.com/UpstandingHackers/hammer;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
|
||||
};
|
||||
|
||||
buildInputs = [ lua scons ];
|
||||
nativeBuildInputs = [ scons ];
|
||||
buildInputs = [ lua ];
|
||||
|
||||
patches = [ ./environ-and-linux-is-kinda-posix.patch ];
|
||||
|
||||
@@ -20,10 +21,6 @@ stdenv.mkDerivation rec {
|
||||
--replace /usr/local $out
|
||||
'';
|
||||
|
||||
buildPhase = ''scons'';
|
||||
|
||||
installPhase = ''scons install'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A tool to integrate C/Cpp code with Lua";
|
||||
homepage = http://www.codenix.com/~tolua/;
|
||||
|
||||
Reference in New Issue
Block a user