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
33 lines
986 B
Nix
Executable File
33 lines
986 B
Nix
Executable File
#!/usr/bin/env -S nix-instantiate --eval --strict --json --arg unused true
|
|
# Unused argument to trigger nix-instantiate calling this function with the default arguments.
|
|
{
|
|
pinnedJson ? ./pinned.json,
|
|
}:
|
|
let
|
|
pinned = (builtins.fromJSON (builtins.readFile pinnedJson)).pins;
|
|
nixpkgs = fetchTarball {
|
|
inherit (pinned.nixpkgs) url;
|
|
sha256 = pinned.nixpkgs.hash;
|
|
};
|
|
pkgs = import nixpkgs {
|
|
config.allowAliases = false;
|
|
};
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
lix = lib.pipe pkgs.lixPackageSets [
|
|
(lib.filterAttrs (_: set: lib.isDerivation set.lix or null && set.lix.meta.available))
|
|
lib.attrNames
|
|
(lib.filter (name: lib.match "lix_[0-9_]+|git" name != null))
|
|
(map (name: "lixPackageSets.${name}.lix"))
|
|
];
|
|
|
|
nix = lib.pipe pkgs.nixVersions [
|
|
(lib.filterAttrs (_: drv: lib.isDerivation drv && drv.meta.available))
|
|
lib.attrNames
|
|
(lib.filter (name: lib.match "nix_[0-9_]+|git" name != null))
|
|
(map (name: "nixVersions.${name}"))
|
|
];
|
|
in
|
|
lix ++ nix
|