Avoid importing <nixpkgs>
if possible
This commit is contained in:
parent
f43214ddd0
commit
0128659a82
@ -1,10 +1,11 @@
|
|||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pkgs = import <nixpkgs> {};
|
|
||||||
zig-overlay = pkgs.fetchFromGitHub {
|
zig-overlay = pkgs.fetchFromGitHub {
|
||||||
owner = "arqv";
|
owner = "arqv";
|
||||||
repo = "zig-overlay";
|
repo = "zig-overlay";
|
||||||
rev = "5b9504b8bff072553051d6e130727f7f5c0715c3";
|
rev = "5b9504b8bff072553051d6e130727f7f5c0715c3";
|
||||||
sha256 = "sha256-NDm5qT6/qr789IhI2dsQxrR5/Mr7cXVj17x/+tl3pDE=";
|
sha256 = "NDm5qT6/qr789IhI2dsQxrR5/Mr7cXVj17x/+tl3pDE=";
|
||||||
};
|
};
|
||||||
gitignoreSrc = pkgs.fetchFromGitHub {
|
gitignoreSrc = pkgs.fetchFromGitHub {
|
||||||
owner = "hercules-ci";
|
owner = "hercules-ci";
|
||||||
@ -13,8 +14,8 @@ let
|
|||||||
sha256 = "1npnx0h6bd0d7ql93ka7azhj40zgjp815fw2r6smg8ch9p7mzdlx";
|
sha256 = "1npnx0h6bd0d7ql93ka7azhj40zgjp815fw2r6smg8ch9p7mzdlx";
|
||||||
};
|
};
|
||||||
inherit (import gitignoreSrc { inherit (pkgs) lib; }) gitignoreSource;
|
inherit (import gitignoreSrc { inherit (pkgs) lib; }) gitignoreSource;
|
||||||
zig-default = (import zig-overlay { inherit pkgs; }).master.latest;
|
zig = (import zig-overlay {}).master.latest;
|
||||||
in { zig ? zig-default, extraConfig ? { } }:
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
pkgs.stdenvNoCC.mkDerivation {
|
||||||
name = "zls";
|
name = "zls";
|
||||||
version = "master";
|
version = "master";
|
||||||
|
Loading…
Reference in New Issue
Block a user