blob: f63702cb7ef44bb5af3c141ac648498f8403a65a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{ lib, fetchFromGitHub, python3 }:
let
pname = "scons";
version = "4.5.2";
src = fetchFromGitHub {
owner = "Scons";
repo = "scons";
rev = version;
hash = "sha256-vxJsz24jDsPcttwPXq9+ztc/N7W4Gkydgykk/FLgZLo=";
};
in
python3.pkgs.buildPythonApplication {
inherit pname version src;
outputs = [ "out" "man" ];
patches = [
./env.patch
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "build/dist" "dist" \
--replace "build/doc/man/" ""
'';
preConfigure = ''
python scripts/scons.py
'';
postInstall = ''
mkdir -p "$man/share/man/man1"
mv "$out/"*.1 "$man/share/man/man1/"
'';
setupHook = ./setup-hook.sh;
# The release tarballs don't contain any tests (runtest.py and test/*):
doCheck = false;
passthru = {
# expose the used python version so tools using this (and extensing scos
# with other python modules) can use the exact same python version.
inherit python3;
python = python3;
};
meta = {
description = "An improved, cross-platform substitute for Make";
longDescription = ''
SCons is an Open Source software construction tool. Think of SCons as an
improved, cross-platform substitute for the classic Make utility with
integrated functionality similar to autoconf/automake and compiler caches
such as ccache. In short, SCons is an easier, more reliable and faster way
to build software.
'';
homepage = "https://scons.org/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ AndersonTorres ];
};
}
|