nix-eval-jobs/tests/assets/flake.nix

30 lines
709 B
Nix
Raw Normal View History

{
2023-12-10 08:22:38 +00:00
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2023-07-21 01:24:29 +00:00
outputs = { nixpkgs, ... }:
2021-09-25 03:17:06 +00:00
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
hydraJobs = import ./ci.nix { inherit pkgs; };
2023-12-10 15:58:22 +00:00
2023-12-16 09:10:49 +00:00
legacyPackages.x86_64-linux = {
brokenPkgs = {
brokenPackage = throw "this is an evaluation error";
};
infiniteRecursionPkgs = {
packageWithInfiniteRecursion =
let
recursion = [ recursion ];
in
derivation {
inherit (pkgs) system;
name = "drvB";
recursiveAttr = recursion;
builder = ":";
};
};
};
};
}