nixos/stash: fix empty immutable plugins (#402574)

This commit is contained in:
Peder Bergebakken Sundt 2025-06-01 03:46:25 +02:00 committed by GitHub
commit cfbe1487f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -324,7 +324,6 @@ let
'';
apply =
srcs:
optionalString (srcs != [ ]) (
pkgs.runCommand "stash-${kind}"
{
inherit srcs;
@ -332,6 +331,8 @@ let
preferLocalBuild = true;
}
''
mkdir -p $out
touch $out/.keep
find $srcs -mindepth 1 -name '*.yml' | while read plugin_file; do
grep -q "^#pkgignore" "$plugin_file" && continue
@ -363,8 +364,7 @@ let
.files = (strenv(plugin_files) | split("\n"))
' > $out_path/manifest
done
''
);
'';
};
in
{