1
1
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:
Nicolas Mattia 2019-04-10 23:10:46 +02:00
parent e45c61ecdc
commit b638632993

View File

@ -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