3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #181432 from aiotter/patch-2

zig: build on darwin
This commit is contained in:
Anderson Torres 2022-07-16 11:02:48 -03:00 committed by GitHub
commit 3bb0ae1512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View file

@ -417,6 +417,12 @@
githubId = 4732885;
name = "Ivan Jager";
};
aiotter = {
email = "git@aiotter.com";
github = "aiotter";
githubId = 37664775;
name = "Yuto Oguchi";
};
airwoodix = {
email = "airwoodix@posteo.me";
github = "airwoodix";

View file

@ -1,4 +1,5 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, llvmPackages
@ -6,9 +7,6 @@
, zlib
}:
let
inherit (llvmPackages) stdenv;
in
stdenv.mkDerivation rec {
pname = "zig";
version = "0.9.1";
@ -50,8 +48,7 @@ stdenv.mkDerivation rec {
description =
"General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software";
license = licenses.mit;
maintainers = with maintainers; [ andrewrk AndersonTorres ];
maintainers = with maintainers; [ aiotter andrewrk AndersonTorres ];
platforms = platforms.unix;
broken = stdenv.isDarwin; # See https://github.com/NixOS/nixpkgs/issues/86299
};
}

View file

@ -21686,6 +21686,7 @@ with pkgs;
libzra = callPackage ../development/libraries/libzra { };
zig = callPackage ../development/compilers/zig {
stdenv = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
llvmPackages = llvmPackages_13;
};