scons: 3.1.2 -> 4.0.0
This commit is contained in:
parent
a3a40ac7cc
commit
d41cd156d0
2 changed files with 13 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{ version, sha256 }:
|
||||
|
||||
{ stdenv, fetchurl, python3Packages, python2Packages, scons }:
|
||||
{ stdenv, fetchurl, python3Packages, lib }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "scons";
|
||||
|
@ -13,7 +13,13 @@ python3Packages.buildPythonApplication rec {
|
|||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
passthru.py2 = scons.override { python3Packages = python2Packages; };
|
||||
postPatch = lib.optionalString (lib.versionAtLeast version "4.0.0") ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "build/dist" "dist"
|
||||
'';
|
||||
|
||||
# TODO: "Invalid SConscript usage - no parameters":
|
||||
doCheck = lib.versionOlder version "4.0.0";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "An improved, cross-platform substitute for Make";
|
||||
|
|
|
@ -7,8 +7,12 @@ in {
|
|||
version = "3.0.1";
|
||||
sha256 = "0wzid419mlwqw9llrg8gsx4nkzhqy16m4m40r0xnh6cwscw5wir4";
|
||||
}).override { python3Packages = python2Packages; };
|
||||
scons_latest = mkScons {
|
||||
scons_3_1_2 = (mkScons {
|
||||
version = "3.1.2";
|
||||
sha256 = "1yzq2gg9zwz9rvfn42v5jzl3g4qf1khhny6zfbi2hib55zvg60bq";
|
||||
}).override { python3Packages = python2Packages; };
|
||||
scons_latest = mkScons {
|
||||
version = "4.0.0";
|
||||
sha256 = "1ikw5lh0h206xd74g39jdlrcicb18jj3j80hvm4nbrfgxv1hvibc";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue