diff --git a/pkgs/development/tools/gllvm/default.nix b/pkgs/development/tools/gllvm/default.nix index 460f59dc3d0e..d2d7e523a94f 100644 --- a/pkgs/development/tools/gllvm/default.nix +++ b/pkgs/development/tools/gllvm/default.nix @@ -1,18 +1,23 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, llvmPackages, getconf }: -buildGoPackage rec { +buildGoModule rec { pname = "gllvm"; - version = "1.3.0"; - - goPackagePath = "github.com/SRI-CSL/gllvm"; + version = "1.3.1"; src = fetchFromGitHub { owner = "SRI-CSL"; repo = "gllvm"; rev = "v${version}"; - sha256 = "sha256-nu6PRFk+GoN1gT1RTbX6mTPZByAGf0bSsj2C5YriGp8="; + sha256 = "sha256-CoreqnMRuPuv+Ci1uyF3HJCJFwK2jwB79okynv6AHTA="; }; + vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo="; + + checkInputs = with llvmPackages; [ + clang + llvm + ] ++ lib.optionals stdenv.isDarwin [ getconf ]; + meta = with lib; { homepage = "https://github.com/SRI-CSL/gllvm"; description = "Whole Program LLVM: wllvm ported to go";