mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
nixos/stash: fix empty immutable plugins (#402574)
This commit is contained in:
commit
cfbe1487f1
1 changed files with 39 additions and 39 deletions
|
@ -324,7 +324,6 @@ let
|
||||||
'';
|
'';
|
||||||
apply =
|
apply =
|
||||||
srcs:
|
srcs:
|
||||||
optionalString (srcs != [ ]) (
|
|
||||||
pkgs.runCommand "stash-${kind}"
|
pkgs.runCommand "stash-${kind}"
|
||||||
{
|
{
|
||||||
inherit srcs;
|
inherit srcs;
|
||||||
|
@ -332,6 +331,8 @@ let
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
|
mkdir -p $out
|
||||||
|
touch $out/.keep
|
||||||
find $srcs -mindepth 1 -name '*.yml' | while read plugin_file; do
|
find $srcs -mindepth 1 -name '*.yml' | while read plugin_file; do
|
||||||
grep -q "^#pkgignore" "$plugin_file" && continue
|
grep -q "^#pkgignore" "$plugin_file" && continue
|
||||||
|
|
||||||
|
@ -363,8 +364,7 @@ let
|
||||||
.files = (strenv(plugin_files) | split("\n"))
|
.files = (strenv(plugin_files) | split("\n"))
|
||||||
' > $out_path/manifest
|
' > $out_path/manifest
|
||||||
done
|
done
|
||||||
''
|
'';
|
||||||
);
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue