Add system attribute

This commit is contained in:
Benjamin Tan 2021-06-06 04:15:06 +08:00
parent 7d11e228cc
commit 70ce776d00
No known key found for this signature in database
GPG Key ID: A853F0716C413825

View File

@ -1,4 +1,5 @@
{ pkgs ? import <nixpkgs> {} }:
{ pkgs ? import <nixpkgs> {},
system ? builtins.currentSystem }:
let
zig-overlay = pkgs.fetchFromGitHub {
@ -14,7 +15,7 @@ let
sha256 = "1npnx0h6bd0d7ql93ka7azhj40zgjp815fw2r6smg8ch9p7mzdlx";
};
inherit (import gitignoreSrc { inherit (pkgs) lib; }) gitignoreSource;
zig = (import zig-overlay { inherit pkgs; }).master.latest;
zig = (import zig-overlay { inherit pkgs system; }).master.latest;
in
pkgs.stdenvNoCC.mkDerivation {
name = "zls";