1
0
Fork 0
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:
Eelco Dolstra 2020-01-31 20:50:46 +01:00
parent 185c3c8240
commit 54037f4e2d
2 changed files with 44 additions and 17 deletions

View file

@ -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 }: {