move zig
This commit is contained in:
parent
ba57e9ce3d
commit
001b3b83a5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue