mirror of
https://github.com/nmattia/niv.git
synced 2024-09-19 11:27:40 +03:00
Improve error message when no nixpkgs
This commit is contained in:
parent
e45c61ecdc
commit
b638632993
@ -7,10 +7,10 @@ with rec
|
||||
if hasNixpkgsPath
|
||||
then
|
||||
if hasThisAsNixpkgsPath
|
||||
then import (builtins_fetchTarball { inherit (sources.nixpkgs) url sha256; }) {}
|
||||
then import (builtins_fetchTarball { inherit (sources_nixpkgs) url sha256; }) {}
|
||||
else import <nixpkgs> {}
|
||||
else
|
||||
import (builtins_fetchTarball { inherit (sources.nixpkgs) url sha256; }) {};
|
||||
import (builtins_fetchTarball { inherit (sources_nixpkgs) url sha256; }) {};
|
||||
|
||||
sources_nixpkgs =
|
||||
if builtins.hasAttr "nixpkgs" sources
|
||||
|
Loading…
Reference in New Issue
Block a user