mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Allow flake input specification via attributes rather than a URL
E.g. inputs.dwarffs = { type = "github"; owner = "edolstra"; repo = "dwarffs"; }; rather than inputs.dwarffs.url = github:edolstra/dwarffs;
This commit is contained in:
parent
185c3c8240
commit
54037f4e2d
2 changed files with 44 additions and 17 deletions
|
@ -468,7 +468,10 @@ cat > $flake3Dir/flake.nix <<EOF
|
|||
{
|
||||
edition = 201909;
|
||||
|
||||
inputs.foo.url = flake:flake1;
|
||||
inputs.foo = {
|
||||
type = "indirect";
|
||||
id = "flake1";
|
||||
};
|
||||
inputs.bar.follows = "foo";
|
||||
|
||||
outputs = { self, foo, bar }: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue