This commit is contained in:
Cadey Ratio 2020-02-29 03:17:56 +00:00
parent ba57e9ce3d
commit 001b3b83a5
1 changed files with 4 additions and 2 deletions

View File

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