zig: 0.2.0 -> 0.3.0

This commit is contained in:
Andrew Kelley 2018-09-29 15:18:57 -04:00
parent 21c26ca390
commit f2fe5f7709
No known key found for this signature in database
GPG Key ID: 4E7CD66038A4D47C
2 changed files with 6 additions and 13 deletions

View File

@ -1,30 +1,23 @@
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2 }:
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib }:
stdenv.mkDerivation rec {
version = "0.2.0";
version = "0.3.0";
name = "zig-${version}";
src = fetchFromGitHub {
owner = "zig-lang";
owner = "ziglang";
repo = "zig";
rev = "${version}";
sha256 = "0lym28z9mj6hfiq78x1fsd8y89h8xyfc1jgqyazi1g9r72427n07";
sha256 = "089ywagxjjh7gxv8h8yg7jpmryzjf7n4m5irhdkhp2966d03kyxm";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ llvmPackages.clang-unwrapped llvmPackages.llvm libxml2 ];
buildInputs = [ llvmPackages.clang-unwrapped llvmPackages.llvm libxml2 zlib ];
cmakeFlags = [
"-DZIG_LIBC_INCLUDE_DIR=${stdenv.cc.libc_dev}/include"
"-DZIG_LIBC_LIB_DIR=${stdenv.cc.libc}/lib"
"-DCMAKE_BUILD_TYPE=Release"
"-DZIG_EACH_LIB_RPATH=On"
];
preConfigure = ''
cmakeFlags="$cmakeFlags -DZIG_LIBC_STATIC_LIB_DIR=$(dirname $(cc -print-file-name=crtbegin.o)) -DZIG_DYNAMIC_LINKER=$(cc -print-file-name=ld-linux-x86-64.so.2)"
'';
meta = with stdenv.lib; {
description = "Programming languaged designed for robustness, optimality, and clarity";
homepage = https://ziglang.org/;

View File

@ -12679,7 +12679,7 @@ with pkgs;
zmqpp = callPackage ../development/libraries/zmqpp { };
zig = callPackage ../development/compilers/zig {
llvmPackages = llvmPackages_6;
llvmPackages = llvmPackages_7;
};
zimlib = callPackage ../development/libraries/zimlib { };