mirror of
https://github.com/NixOS/nix
synced 2025-07-16 02:01:59 +02:00
skip ifds in nix flake show instead of throwing
This commit is contained in:
parent
77f22db567
commit
fcf5966488
6 changed files with 69 additions and 15 deletions
|
@ -88,6 +88,19 @@ writeDependentFlake() {
|
|||
EOF
|
||||
}
|
||||
|
||||
writeIfdFlake() {
|
||||
local flakeDir="$1"
|
||||
cat > "$flakeDir/flake.nix" <<EOF
|
||||
{
|
||||
outputs = { self }: {
|
||||
packages.$system.default = import ./ifd.nix;
|
||||
};
|
||||
}
|
||||
EOF
|
||||
|
||||
cp -n ../ifd.nix ../dependencies.nix ../dependencies.builder0.sh "${config_nix}" "$flakeDir/"
|
||||
}
|
||||
|
||||
writeTrivialFlake() {
|
||||
local flakeDir="$1"
|
||||
cat > "$flakeDir/flake.nix" <<EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue