mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-14 22:04:27 +01:00
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
|
|
''
|