mirror of
https://github.com/NixOS/nix
synced 2025-07-07 18:31:49 +02:00
Allow the 'url' flake input attribute to be a path literal
https://github.com/NixOS/nix/pull/10089#issuecomment-1978133326
This commit is contained in:
parent
49f592dd99
commit
3180671cab
2 changed files with 27 additions and 11 deletions
|
@ -12,7 +12,7 @@ mkdir -p $rootFlake $subflake0 $subflake1 $subflake2
|
|||
|
||||
cat > $rootFlake/flake.nix <<EOF
|
||||
{
|
||||
inputs.sub0.url = "./sub0";
|
||||
inputs.sub0.url = ./sub0;
|
||||
outputs = { self, sub0 }: {
|
||||
x = 2;
|
||||
y = self.x * sub0.x;
|
||||
|
@ -50,7 +50,7 @@ git -C $rootFlake add flake.nix sub0/flake.nix sub1/flake.nix
|
|||
|
||||
cat > $subflake2/flake.nix <<EOF
|
||||
{
|
||||
inputs.root.url = "../";
|
||||
inputs.root.url = ./..;
|
||||
inputs.sub1.url = "../sub1";
|
||||
outputs = { self, root, sub1 }: {
|
||||
x = 5;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue