mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
9e522a736d
Release Notes: https://ziglang.org/download/0.5.0/release-notes.html
29 lines
723 B
Nix
29 lines
723 B
Nix
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.5.0";
|
|
pname = "zig";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ziglang";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0xyl0riakh6kwb3yvxihb451kqs4ai4q0aygqygnlb2rlr1dn1zb";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ llvmPackages.clang-unwrapped llvmPackages.llvm libxml2 zlib ];
|
|
|
|
preBuild = ''
|
|
export HOME=$TMPDIR;
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Programming languaged designed for robustness, optimality, and clarity";
|
|
homepage = https://ziglang.org/;
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.andrewrk ];
|
|
};
|
|
}
|