-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathdefault.nix
More file actions
45 lines (45 loc) · 1.03 KB
/
Copy pathdefault.nix
File metadata and controls
45 lines (45 loc) · 1.03 KB
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
{
python3Packages,
makeWrapper,
nix-eval-jobs,
lib,
bashInteractive,
}:
let
path = lib.makeBinPath [
nix-eval-jobs
nix-eval-jobs.nix
];
in
python3Packages.buildPythonApplication {
pname = "nix-fast-build";
version = (lib.trivial.importTOML ./pyproject.toml).project.version;
format = "pyproject";
src = ./.;
buildInputs = with python3Packages; [
setuptools
bashInteractive
];
nativeBuildInputs = [
makeWrapper
python3Packages.pytest
python3Packages.pyte
];
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 = "Speed up your Nix evaluation and building process with parallel evaluation and building";
homepage = "https://github.com/Mic92/nix-fast-build";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mic92 ];
mainProgram = "nix-fast-build";
};
}