2022-11-21 17:40:18 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, llvmPackages, getconf }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gllvm";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "1.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SRI-CSL";
|
|
|
|
repo = "gllvm";
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-CoreqnMRuPuv+Ci1uyF3HJCJFwK2jwB79okynv6AHTA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorSha256 = null;
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with llvmPackages; [
|
2022-11-21 17:40:18 +00:00
|
|
|
clang
|
|
|
|
llvm
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [ getconf ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/SRI-CSL/gllvm";
|
|
|
|
description = "Whole Program LLVM: wllvm ported to go";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|