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

29 lines
746 B
Nix
Raw Normal View History

2018-09-29 21:18:57 +02:00
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib }:
2017-10-20 05:51:45 +02:00
stdenv.mkDerivation rec {
2018-09-29 21:18:57 +02:00
version = "0.3.0";
2017-10-20 05:51:45 +02:00
name = "zig-${version}";
src = fetchFromGitHub {
2018-09-29 21:18:57 +02:00
owner = "ziglang";
2017-10-20 05:51:45 +02:00
repo = "zig";
rev = "${version}";
2018-09-29 21:18:57 +02:00
sha256 = "089ywagxjjh7gxv8h8yg7jpmryzjf7n4m5irhdkhp2966d03kyxm";
2017-10-20 05:51:45 +02:00
};
2018-03-19 01:13:46 +01:00
nativeBuildInputs = [ cmake ];
2018-09-29 21:18:57 +02:00
buildInputs = [ llvmPackages.clang-unwrapped llvmPackages.llvm libxml2 zlib ];
2017-10-20 05:51:45 +02:00
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
];
meta = with stdenv.lib; {
description = "Programming languaged designed for robustness, optimality, and clarity";
2018-03-19 01:13:46 +01:00
homepage = https://ziglang.org/;
2017-10-20 05:51:45 +02:00
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.andrewrk ];
};
}