forked from Mic92/nix-fast-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
31 lines (31 loc) · 887 Bytes
/
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
{ python311, makeWrapper, nix, nix-eval-jobs, nix-output-monitor, lib, bashInteractive }:
let
path = lib.makeBinPath [ nix nix-eval-jobs nix-output-monitor ];
in
python311.pkgs.buildPythonApplication {
pname = "nix-fast-build";
version = "0.1.0";
format = "pyproject";
src = ./.;
buildInputs = with python311.pkgs; [
setuptools
bashInteractive
];
nativeBuildInputs = [
makeWrapper
python311.pkgs.pytest
];
preFixup = ''
makeWrapperArgs+=(--prefix PATH : ${path})
'';
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";
};
}