2019-10-04 17:16:41 +02:00
|
|
|
let
|
|
|
|
sources = import ./sources.nix;
|
2020-09-05 23:00:30 +02:00
|
|
|
lib = import (sources."nixos-20.03" + "/lib");
|
2020-03-17 16:46:12 +01:00
|
|
|
inherit (import (sources."project.nix" + "/lib/dimension.nix") { inherit lib; }) dimension;
|
2019-10-04 17:16:41 +02:00
|
|
|
in
|
2019-09-28 16:27:07 +02:00
|
|
|
|
2019-10-04 17:16:41 +02:00
|
|
|
dimension "Nixpkgs version" {
|
|
|
|
"nixos-19_03" = {
|
2020-03-02 11:13:47 +01:00
|
|
|
# flyingcircus.io latest long-term support is based off 19.03
|
|
|
|
# https://flyingcircus.io/doc/
|
|
|
|
# It is nice to have some level of support for their platform,
|
|
|
|
# but we don't guarantee any support.
|
|
|
|
nixpkgsSource = "nixos-19.03";
|
2019-10-24 19:36:58 +02:00
|
|
|
enableDoc = false;
|
2020-03-02 11:13:47 +01:00
|
|
|
nixosTestIsPerl = true;
|
2019-10-04 17:16:41 +02:00
|
|
|
};
|
2019-10-04 19:29:09 +02:00
|
|
|
"nixos-19_09" = {
|
|
|
|
nixpkgsSource = "nixos-19.09";
|
2020-03-02 11:13:47 +01:00
|
|
|
enableDoc = false;
|
|
|
|
nixosTestIsPerl = true;
|
|
|
|
};
|
|
|
|
"nixos-20_03" = {
|
|
|
|
nixpkgsSource = "nixos-20.03";
|
2020-10-01 11:58:43 +02:00
|
|
|
isReferenceNixpkgs = false;
|
|
|
|
enableDoc = true;
|
|
|
|
};
|
|
|
|
"nixos-20_09" = {
|
|
|
|
nixpkgsSource = "nixos-20.09";
|
2020-03-02 11:13:47 +01:00
|
|
|
isReferenceNixpkgs = true;
|
2019-10-24 19:36:58 +02:00
|
|
|
enableDoc = true;
|
2019-10-04 19:29:09 +02:00
|
|
|
};
|
2020-09-05 23:00:30 +02:00
|
|
|
"nixos-unstable" = {
|
|
|
|
nixpkgsSource = "nixos-unstable";
|
|
|
|
enableDoc = true;
|
|
|
|
};
|
2019-10-04 17:16:41 +02:00
|
|
|
} (
|
2020-03-02 11:13:47 +01:00
|
|
|
_name: { nixpkgsSource, isReferenceNixpkgs ? false, enableDoc ? true, nixosTestIsPerl ? false }:
|
2019-10-04 17:16:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
dimension "System" {
|
2019-10-04 19:09:29 +02:00
|
|
|
"x86_64-linux" = { isReferenceTarget = isReferenceNixpkgs; };
|
2019-10-26 10:31:45 +02:00
|
|
|
"x86_64-darwin" = { enableNixOSTests = false; };
|
2019-10-04 17:16:41 +02:00
|
|
|
} (
|
2019-10-26 10:31:45 +02:00
|
|
|
system: { isReferenceTarget ? false, enableNixOSTests ? true }:
|
2019-10-04 17:16:41 +02:00
|
|
|
let
|
2020-03-02 11:13:47 +01:00
|
|
|
pkgs = import ./. {
|
|
|
|
inherit system nixosTestIsPerl;
|
|
|
|
nixpkgsSrc = sources.${nixpkgsSource};
|
|
|
|
};
|
2019-10-04 17:16:41 +02:00
|
|
|
in
|
|
|
|
{
|
2019-10-26 10:31:45 +02:00
|
|
|
inherit (pkgs) arion;
|
|
|
|
} // lib.optionalAttrs enableNixOSTests {
|
|
|
|
inherit (pkgs) tests;
|
2019-10-04 17:16:41 +02:00
|
|
|
} // lib.optionalAttrs enableDoc {
|
2019-10-24 19:36:58 +02:00
|
|
|
inherit (pkgs) doc doc-options doc-options-check;
|
2019-10-04 19:09:29 +02:00
|
|
|
} // lib.optionalAttrs isReferenceTarget {
|
|
|
|
inherit (pkgs.arion-project.haskellPkgs) arion-compose-checked;
|
2019-10-04 17:16:41 +02:00
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|