From 001b3b83a5bdd2af04fe051a559e5152137e444e Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 29 Feb 2020 03:17:56 +0000 Subject: [PATCH] move zig --- pkgs/zig.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/zig.nix b/pkgs/zig.nix index 59a3f7a..c6884d6 100644 --- a/pkgs/zig.nix +++ b/pkgs/zig.nix @@ -1,13 +1,15 @@ { sources ? import ./sources.nix, pkgs ? import sources.nixpkgs { } }: -version: +version: sha256: let - src = if pkgs.stdenv.isDarwin then + url = if pkgs.stdenv.isDarwin then "https://ziglang.org/builds/zig-macos-x86_64-${version}.tar.xz" else "https://ziglang.org/builds/zig-linux-x86_64-${version}.tar.xz"; + src = pkgs.fetchurl { inherit sha256 url; }; + in pkgs.stdenv.mkDerivation { name = "zig"; inherit src version;