tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
scons: cleanup
The generator files are now useless.
Anderson Torres
2 years ago
df5b3a39
4411614d
-70
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
build-managers
scons
default.nix
make-scons.nix
-8
pkgs/development/tools/build-managers/scons/default.nix
···
1
1
-
{ callPackage, python2, python3 }:
2
2
-
3
3
-
let
4
4
-
mkScons = args: callPackage (import ./make-scons.nix args) {
5
5
-
python = python3;
6
6
-
};
7
7
-
in {
8
8
-
}
-62
pkgs/development/tools/build-managers/scons/make-scons.nix
···
1
1
-
{ version, sha256 }:
2
2
-
3
3
-
{ fetchurl, python, lib }:
4
4
-
5
5
-
python.pkgs.buildPythonApplication rec {
6
6
-
pname = "scons";
7
7
-
inherit version;
8
8
-
9
9
-
src = fetchurl {
10
10
-
url =
11
11
-
if lib.versionAtLeast version "4.3.0" then
12
12
-
"mirror://sourceforge/project/scons/scons/${version}/SCons-${version}.tar.gz"
13
13
-
else
14
14
-
"mirror://sourceforge/scons/scons-${version}.tar.gz";
15
15
-
inherit sha256;
16
16
-
};
17
17
-
18
18
-
setupHook = ./setup-hook.sh;
19
19
-
20
20
-
patches = lib.optionals (lib.versionAtLeast version "4.3.0") [
21
21
-
./env.patch
22
22
-
];
23
23
-
24
24
-
postPatch = lib.optionalString (lib.versionAtLeast version "4.0.0") ''
25
25
-
substituteInPlace setup.cfg \
26
26
-
--replace "build/dist" "dist"
27
27
-
'' + lib.optionalString (lib.versionAtLeast version "4.1.0") ''
28
28
-
substituteInPlace setup.cfg \
29
29
-
--replace "build/doc/man/" ""
30
30
-
'';
31
31
-
32
32
-
# The release tarballs don't contain any tests (runtest.py and test/*):
33
33
-
doCheck = lib.versionOlder version "4.0.0";
34
34
-
35
35
-
postInstall = lib.optionalString (lib.versionAtLeast version "4.1.0") ''
36
36
-
mkdir -p "$out/share/man/man1"
37
37
-
mv "$out/"*.1 "$out/share/man/man1/"
38
38
-
'';
39
39
-
40
40
-
passthru = {
41
41
-
# expose the used python version so tools using this (and extensing scos with other python modules)
42
42
-
# can use the exact same python version.
43
43
-
inherit python;
44
44
-
};
45
45
-
46
46
-
meta = with lib; {
47
47
-
description = "An improved, cross-platform substitute for Make";
48
48
-
longDescription = ''
49
49
-
SCons is an Open Source software construction tool. Think of
50
50
-
SCons as an improved, cross-platform substitute for the classic
51
51
-
Make utility with integrated functionality similar to
52
52
-
autoconf/automake and compiler caches such as ccache. In short,
53
53
-
SCons is an easier, more reliable and faster way to build
54
54
-
software.
55
55
-
'';
56
56
-
homepage = "https://scons.org/";
57
57
-
changelog = "https://raw.githubusercontent.com/SConsProject/scons/rel_${version}/src/CHANGES.txt";
58
58
-
license = licenses.mit;
59
59
-
platforms = platforms.all;
60
60
-
maintainers = with lib.maintainers; [ AndersonTorres ];
61
61
-
};
62
62
-
}