forked from lix-project/nix-eval-jobs
adisbladis
174e735183
We are getting rid of Hydra specific hacks and making this a more generically useful component for any projects that need to run large evaluations.
26 lines
745 B
Nix
26 lines
745 B
Nix
{
|
|
description = "Hydra's builtin hydra-eval-jobs as a standalone";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
rec {
|
|
packages.nix-eval-jobs = pkgs.callPackage ./hydra.nix {
|
|
srcDir = self;
|
|
};
|
|
defaultPackage = self.packages.${system}.nix-eval-jobs;
|
|
devShell = defaultPackage.overrideAttrs (old: {
|
|
nativeBuildInputs = old.nativeBuildInputs ++ [
|
|
(pkgs.python3.withPackages(ps: [
|
|
ps.pytest
|
|
]))
|
|
];
|
|
});
|
|
});
|
|
}
|