nix-fast-build/default.nix
Jörg Thalheim e3b29e5f80 first commit
2023-09-08 10:13:07 +02:00

19 lines
481 B
Nix

{ python3, makeWrapper, nix, nix-eval-jobs, nix-output-monitor, lib }:
let
path = lib.makeBinPath [ nix nix-eval-jobs nix-output-monitor ];
in
python3.pkgs.buildPythonApplication {
pname = "nix-ci-build";
version = "0.1.0";
format = "pyproject";
src = ./.;
buildInputs = with python3.pkgs; [ setuptools ];
nativeBuildInputs = [ makeWrapper ];
preFixup = ''
makeWrapperArgs+=(--prefix PATH : ${path})
'';
shellHook = ''
export PATH=${path}:$PATH
'';
}