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
19 lines
428 B
Nix
19 lines
428 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
feature,
|
|
}:
|
|
|
|
pkgs.runCommandNoCC "${feature}-present-structured"
|
|
{
|
|
__structuredAttrs = true;
|
|
requiredSystemFeatures = [ feature ];
|
|
}
|
|
''
|
|
if [[ -e /${feature}-files ]]; then
|
|
touch $out
|
|
else
|
|
echo "The host declares ${feature} support, but doesn't expose /${feature}-files" >&2
|
|
echo "Do we fail to parse __structuredAttrs=true derivations?" >&2
|
|
fi
|
|
''
|