2018-09-29 19:18:57 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib }:
|
2017-10-20 03:51:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-10-01 01:00:00 +00:00
|
|
|
version = "0.5.0";
|
2019-04-09 05:08:26 +00:00
|
|
|
pname = "zig";
|
2017-10-20 03:51:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-09-29 19:18:57 +00:00
|
|
|
owner = "ziglang";
|
2019-04-09 05:08:26 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-10-01 01:00:00 +00:00
|
|
|
sha256 = "0xyl0riakh6kwb3yvxihb451kqs4ai4q0aygqygnlb2rlr1dn1zb";
|
2017-10-20 03:51:45 +00:00
|
|
|
};
|
|
|
|
|
2018-03-19 00:13:46 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-09-29 19:18:57 +00:00
|
|
|
buildInputs = [ llvmPackages.clang-unwrapped llvmPackages.llvm libxml2 zlib ];
|
2017-10-20 03:51:45 +00:00
|
|
|
|
2019-10-01 01:00:00 +00:00
|
|
|
preBuild = ''
|
|
|
|
export HOME=$TMPDIR;
|
|
|
|
'';
|
|
|
|
|
2017-10-20 03:51:45 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Programming languaged designed for robustness, optimality, and clarity";
|
2018-03-19 00:13:46 +00:00
|
|
|
homepage = https://ziglang.org/;
|
2017-10-20 03:51:45 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.andrewrk ];
|
|
|
|
};
|
|
|
|
}
|