aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/src/sh.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-13 20:34:59 +0000
committertv <tv@krebsco.de>2026-11-13 22:01:29 +0100
commit7768c71fd8083ea21572de2859fed39c17524baf (patch)
tree1bccd536bef6adaa844c73478e8fc11900b0a85e /pkgs/populate/src/sh.rs
parent53eb98c0b2f808ca456717111facf21ca4a50015 (diff)
populate: check the settings of sources in the spec
The program checks that each source's settings are those lib/types/populate.nix defines for its type, with values of the kinds it defines, for specs from elsewhere than default.nix: a misspelt setting fails, as design.md promises, instead of being ignored, and so does a setting the program would treat as its default because of its kind. This subsumes the check of absolute paths. ln gets a symlink source's target after --, so it can't be taken for an option either.
Diffstat (limited to 'pkgs/populate/src/sh.rs')
-rw-r--r--pkgs/populate/src/sh.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/populate/src/sh.rs b/pkgs/populate/src/sh.rs
index 15da78c..9daa60b 100644
--- a/pkgs/populate/src/sh.rs
+++ b/pkgs/populate/src/sh.rs
@@ -238,7 +238,7 @@ nix-build -E "$3" -o "$1" >&2
/// symlink PATH TARGET: makes PATH a symlink to TARGET.
pub const SYMLINK: &str = r#"
-ln -fnsT "$2" "$1"
+ln -fnsT -- "$2" "$1"
"#;
/// Defines git_problems PATH, which prints why populate can't use the .git