2022-11-21 17:40:18 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, llvmPackages, getconf }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
buildGoModule {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gllvm";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.3.1-unstable-2024-04-28";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SRI-CSL";
|
|
|
|
repo = "gllvm";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "154531bdd9c05cd9d01742bc1b35bdf200a487d3";
|
|
|
|
sha256 = "sha256-dxrtJFqEEDKx33+sOm+R7huBwbovlKzL4qFXoco8A4s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = 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
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ getconf ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
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;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|