98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
13 lines
272 B
Nix
13 lines
272 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
feature,
|
|
}:
|
|
|
|
pkgs.runCommandNoCC "${feature}-not-present" { } ''
|
|
if [[ -e /${feature}-files ]]; then
|
|
echo "No ${feature} in requiredSystemFeatures, but /${feature}-files was mounted anyway"
|
|
exit 1
|
|
else
|
|
touch $out
|
|
fi
|
|
''
|