mirror of
https://github.com/nmattia/niv.git
synced 2024-09-19 19:37:41 +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
|
if hasNixpkgsPath
|
||||||
then
|
then
|
||||||
if hasThisAsNixpkgsPath
|
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 <nixpkgs> {}
|
||||||
else
|
else
|
||||||
import (builtins_fetchTarball { inherit (sources.nixpkgs) url sha256; }) {};
|
import (builtins_fetchTarball { inherit (sources_nixpkgs) url sha256; }) {};
|
||||||
|
|
||||||
sources_nixpkgs =
|
sources_nixpkgs =
|
||||||
if builtins.hasAttr "nixpkgs" sources
|
if builtins.hasAttr "nixpkgs" sources
|
||||||
|
Loading…
Reference in New Issue
Block a user