repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vuls: init at 0.27.0
[NixPkgs.git]
/
nixos
/
tests
/
nix-required-mounts
/
ensure-path-not-present.nix
blob
270c268fcbd9e96ca609d92c48c68406329feb7c
1
{
2
pkgs ? import <nixpkgs> { },
3
feature,
4
}:
5
6
pkgs.runCommandNoCC "${feature}-not-present" { } ''
7
if [[ -e /${feature}-files ]]; then
8
echo "No ${feature} in requiredSystemFeatures, but /${feature}-files was mounted anyway"
9
exit 1
10
else
11
touch $out
12
fi
13
''