Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
nix-eval-jobs,
|
|
nix-output-monitor,
|
|
nix-update-script,
|
|
bashInteractive,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "nix-fast-build";
|
|
version = "1.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = "nix-fast-build";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-6X4BW+3C2nfkorMfe+tuoeYrdddxPtLqOJ1rZxuxPrc=";
|
|
};
|
|
|
|
build-system = [ python3Packages.setuptools ];
|
|
|
|
makeWrapperArgs = [
|
|
"--prefix PATH : ${
|
|
lib.makeBinPath (
|
|
[
|
|
nix-eval-jobs
|
|
nix-eval-jobs.nix
|
|
bashInteractive
|
|
]
|
|
++ 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";
|
|
};
|
|
}
|