2019-10-04 18:16:41 +03:00
|
|
|
let
|
|
|
|
sources = import ./sources.nix;
|
2021-01-22 12:24:36 +03:00
|
|
|
lib = import (sources."nixos-unstable" + "/lib");
|
2020-03-17 18:46:12 +03:00
|
|
|
inherit (import (sources."project.nix" + "/lib/dimension.nix") { inherit lib; }) dimension;
|
2019-10-04 18:16:41 +03:00
|
|
|
in
|
2019-09-28 17:27:07 +03:00
|
|
|
|
2019-10-04 18:16:41 +03:00
|
|
|
dimension "Nixpkgs version" {
|
2020-10-01 12:58:43 +03:00
|
|
|
"nixos-20_09" = {
|
|
|
|
nixpkgsSource = "nixos-20.09";
|
2019-10-24 20:36:58 +03:00
|
|
|
enableDoc = true;
|
2021-05-26 17:57:56 +03:00
|
|
|
dockerSupportsSystemd = true;
|
|
|
|
nixosHasPodmanDockerSocket = false;
|
2019-10-04 20:29:09 +03:00
|
|
|
};
|
2021-06-03 09:13:55 +03:00
|
|
|
"nixos-21_05" = {
|
|
|
|
nixpkgsSource = "nixos-21.05";
|
|
|
|
enableDoc = true;
|
|
|
|
};
|
2020-09-06 00:00:30 +03:00
|
|
|
"nixos-unstable" = {
|
|
|
|
nixpkgsSource = "nixos-unstable";
|
2021-06-03 11:15:03 +03:00
|
|
|
isReferenceNixpkgs = true; # match ./default.nix
|
2020-09-06 00:00:30 +03:00
|
|
|
enableDoc = true;
|
|
|
|
};
|
2019-10-04 18:16:41 +03:00
|
|
|
} (
|
2021-05-26 17:57:56 +03:00
|
|
|
_name: { nixpkgsSource, isReferenceNixpkgs ? false, enableDoc ? true,
|
2021-05-26 21:58:59 +03:00
|
|
|
dockerSupportsSystemd ? false, nixosHasPodmanDockerSocket ? true }:
|
2019-10-04 18:16:41 +03:00
|
|
|
|
|
|
|
|
|
|
|
dimension "System" {
|
2019-10-04 20:09:29 +03:00
|
|
|
"x86_64-linux" = { isReferenceTarget = isReferenceNixpkgs; };
|
2019-10-26 11:31:45 +03:00
|
|
|
"x86_64-darwin" = { enableNixOSTests = false; };
|
2019-10-04 18:16:41 +03:00
|
|
|
} (
|
2019-10-26 11:31:45 +03:00
|
|
|
system: { isReferenceTarget ? false, enableNixOSTests ? true }:
|
2019-10-04 18:16:41 +03:00
|
|
|
let
|
2020-03-02 13:13:47 +03:00
|
|
|
pkgs = import ./. {
|
2021-05-26 21:58:59 +03:00
|
|
|
inherit system dockerSupportsSystemd nixosHasPodmanDockerSocket;
|
2020-03-02 13:13:47 +03:00
|
|
|
nixpkgsSrc = sources.${nixpkgsSource};
|
|
|
|
};
|
2019-10-04 18:16:41 +03:00
|
|
|
in
|
|
|
|
{
|
2019-10-26 11:31:45 +03:00
|
|
|
inherit (pkgs) arion;
|
|
|
|
} // lib.optionalAttrs enableNixOSTests {
|
|
|
|
inherit (pkgs) tests;
|
2019-10-04 18:16:41 +03:00
|
|
|
} // lib.optionalAttrs enableDoc {
|
2019-10-24 20:36:58 +03:00
|
|
|
inherit (pkgs) doc doc-options doc-options-check;
|
2019-10-04 20:09:29 +03:00
|
|
|
} // lib.optionalAttrs isReferenceTarget {
|
|
|
|
inherit (pkgs.arion-project.haskellPkgs) arion-compose-checked;
|
2019-10-04 18:16:41 +03:00
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|