summary refs log tree commit diff
path: root/lib/flake.nix
diff options
context:
space:
mode:
authorVictor Borja <vborja@apache.org>2021-08-14 14:46:00 -0500
committerGitHub <noreply@github.com>2021-08-14 14:46:00 -0500
commit9a62c51fdfa2f73d66497a964932afcd6aa96048 (patch)
treea7ee10389e8d9a57b74d3381b10dcdfcb2f26a36 /lib/flake.nix
parenta55646b8a8a969f6de4d55510a5b439d9533978b (diff)
downloadnixpkgs-9a62c51fdfa2f73d66497a964932afcd6aa96048.tar
nixpkgs-9a62c51fdfa2f73d66497a964932afcd6aa96048.tar.gz
nixpkgs-9a62c51fdfa2f73d66497a964932afcd6aa96048.tar.bz2
nixpkgs-9a62c51fdfa2f73d66497a964932afcd6aa96048.tar.lz
nixpkgs-9a62c51fdfa2f73d66497a964932afcd6aa96048.tar.xz
nixpkgs-9a62c51fdfa2f73d66497a964932afcd6aa96048.tar.zst
nixpkgs-9a62c51fdfa2f73d66497a964932afcd6aa96048.zip
Fix import path.
Trying to create a simple flake with input:

```
{
     inputs.nixpkgs-lib.url = "github:NixOS/nixpkgs?dir=lib";
     outputs = {nixpkgs-lib, ...}: { };
}
```

Fails when trying to evaluate the nixpkgs-lib flake with an error like:

```
error: getting status of '/nix/store/xxxx-source/lib/lib': No such file or directory
(use '--show-trace' to show detailed location information)
```
Diffstat (limited to 'lib/flake.nix')
-rw-r--r--lib/flake.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/flake.nix b/lib/flake.nix
index f05bd40960a..0b5e54d547c 100644
--- a/lib/flake.nix
+++ b/lib/flake.nix
@@ -1,5 +1,5 @@
 {
   description = "Library of low-level helper functions for nix expressions.";
 
-  outputs = { self }: { lib = import ./lib; };
+  outputs = { self }: { lib = import ./.; };
 }