Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / gllvm / default.nix
blob14b24d91dac53118592d58be3d7d2dd54e258526
1 { lib, buildGoModule, fetchFromGitHub, llvmPackages, getconf }:
3 buildGoModule rec {
4   pname = "gllvm";
5   version = "1.3.1";
7   src = fetchFromGitHub {
8     owner = "SRI-CSL";
9     repo = "gllvm";
10     rev = "v${version}";
11     sha256 = "sha256-CoreqnMRuPuv+Ci1uyF3HJCJFwK2jwB79okynv6AHTA=";
12   };
14   vendorHash = null;
16   nativeCheckInputs = with llvmPackages; [
17     clang
18     llvm
19   ] ++ lib.optionals stdenv.isDarwin [ getconf ];
21   meta = with lib; {
22     homepage = "https://github.com/SRI-CSL/gllvm";
23     description = "Whole Program LLVM: wllvm ported to go";
24     license = licenses.bsd3;
25     maintainers = with maintainers; [ dtzWill ];
26   };