blob: f610c1f3a9acf77a26cc1e320f0e658131e33d04 (
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
|
{
lib,
stdenv,
fetchFromGitHub,
python3Packages,
nix-eval-jobs,
nix-output-monitor,
nix-update-script,
}:
python3Packages.buildPythonApplication rec {
pname = "nix-fast-build";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Mic92";
repo = "nix-fast-build";
rev = "refs/tags/${version}";
hash = "sha256-8zW6eWvE9T03cMpo/hY8RRZIsSCfs1zmsJOkEZzuYwM=";
};
build-system = [ python3Packages.setuptools ];
makeWrapperArgs = [
"--prefix PATH : ${
lib.makeBinPath (
[
nix-eval-jobs
nix-eval-jobs.nix
]
++ lib.optional (lib.meta.availableOn stdenv.buildPlatform nix-output-monitor.compiler) nix-output-monitor
)
}"
];
# Don't run integration tests as they try to run nix
# to build stuff, which we cannot do inside the sandbox.
checkPhase = ''
PYTHONPATH= $out/bin/nix-fast-build --help
'';
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Combine the power of nix-eval-jobs with nix-output-monitor to speed-up your evaluation and building process";
homepage = "https://github.com/Mic92/nix-fast-build";
changelog = "https://github.com/Mic92/nix-fast-build/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
getchoo
mic92
];
mainProgram = "nix-fast-build";
};
}
|