nixpkgs/pkgs/development/compilers/zig/default.nix

25 lines
675 B
Nix
Raw Normal View History

2018-09-29 12:18:57 -07:00
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib }:
2017-10-19 20:51:45 -07:00
stdenv.mkDerivation rec {
version = "0.4.0";
pname = "zig";
2017-10-19 20:51:45 -07:00
src = fetchFromGitHub {
2018-09-29 12:18:57 -07:00
owner = "ziglang";
repo = pname;
rev = version;
sha256 = "1cq6cc5pvybz9kn3y0j5gskkjq88hkmmcsva54mfzpcc65l3pv6p";
2017-10-19 20:51:45 -07:00
};
2018-03-18 17:13:46 -07:00
nativeBuildInputs = [ cmake ];
2018-09-29 12:18:57 -07:00
buildInputs = [ llvmPackages.clang-unwrapped llvmPackages.llvm libxml2 zlib ];
2017-10-19 20:51:45 -07:00
meta = with stdenv.lib; {
description = "Programming languaged designed for robustness, optimality, and clarity";
2018-03-18 17:13:46 -07:00
homepage = https://ziglang.org/;
2017-10-19 20:51:45 -07:00
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.andrewrk ];
};
}