-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdefault.nix
46 lines (46 loc) · 1.01 KB
/
default.nix
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
{
python311,
makeWrapper,
nix-eval-jobs,
nix-output-monitor,
lib,
bashInteractive,
}:
let
path = lib.makeBinPath [
nix-eval-jobs
nix-eval-jobs.nix
nix-output-monitor
];
in
python311.pkgs.buildPythonApplication {
pname = "nix-fast-build";
version = "1.1.0";
format = "pyproject";
src = ./.;
buildInputs = with python311.pkgs; [
setuptools
bashInteractive
];
nativeBuildInputs = [
makeWrapper
python311.pkgs.pytest
];
preFixup = ''
makeWrapperArgs+=(--prefix PATH : ${path})
'';
postFixup = ''
# don't leak python into devshell
rm $out/nix-support/propagated-build-inputs
'';
shellHook = ''
export PATH=${path}:$PATH
'';
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";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mic92 ];
mainProgram = "nix-fast-build";
};
}