diff options
author | Guillaume Girol <symphorien@users.noreply.github.com> | 2022-06-05 18:03:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-05 18:03:34 +0000 |
commit | 2c93e9de7c6ad03e6f715a2641c819468cbd79d2 (patch) | |
tree | ac1b5b074b424d7738046b91a931316752faee75 /pkgs | |
parent | 49c4223e984aef1e78d0073cee112c66b23381fa (diff) | |
parent | 9332a7c99c0bc1ee5d4ea931c4acde70e2fd4215 (diff) |
Merge pull request #173136 from athas/ispc-1.18.0
ispc: unstable-2021-04-02 -> 1.18.0, (co-)maintain
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/compilers/ispc/default.nix | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/pkgs/development/compilers/ispc/default.nix b/pkgs/development/compilers/ispc/default.nix index bbe17e0755ce..d36f36a85a73 100644 --- a/pkgs/development/compilers/ispc/default.nix +++ b/pkgs/development/compilers/ispc/default.nix @@ -1,41 +1,29 @@ { lib, stdenv, fetchFromGitHub, fetchpatch -, cmake, which, m4, python3, bison, flex, llvmPackages +, cmake, which, m4, python3, bison, flex, llvmPackages, ncurses # the default test target is sse4, but that is not supported by all Hydra agents -, testedTargets ? [ "sse2" ] +, testedTargets ? [ "sse2-i32x4" ] }: stdenv.mkDerivation rec { pname = "ispc"; - version = "unstable-2021-04-02"; + version = "1.18.0"; src = fetchFromGitHub { owner = pname; repo = pname; - # ISPC release 1.15.0 doesn't build against LLVM 11.1, only against 11.0. So we - # use latest ISPC main branch for now, until they support an LLVM version we have. - # https://github.com/ispc/ispc/issues/2027#issuecomment-784470530 - rev = "3e8313568265d2adfbf95bd6b6e1a4c70ef59bed"; - sha256 = "sha256-gvr+VpoacmwQlP5gT4MnfmKdACZWJduVMIpR0YRzseg="; + rev = "v${version}"; + sha256 = "sha256-eI/zUhZDTd2SiFltjrs8kxvQQOPHpqhArGyOW+och3E="; }; - patches = [ - # Fix cmake error: `Failed to find clang++` - # https://github.com/ispc/ispc/pull/2055 - (fetchpatch { - url = "https://github.com/erictapen/ispc/commit/338119b2f4e11fcf0b0852de296c320928e572a2.patch"; - sha256 = "sha256-+RqDq1LMWomu/K4SgK0Nip47b1RwyM6W0cTSNGD4+m4="; - }) - ]; - - nativeBuildInputs = [ cmake which m4 bison flex python3 llvmPackages.llvm.dev ]; + nativeBuildInputs = [ cmake which m4 bison flex python3 llvmPackages.libllvm.dev ]; buildInputs = with llvmPackages; [ - llvm llvmPackages.libclang + libllvm libclang openmp ncurses ]; postPatch = '' substituteInPlace CMakeLists.txt \ - --replace curses ncurses + --replace CURSES_CURSES_LIBRARY CURSES_NCURSES_LIBRARY substituteInPlace cmake/GenerateBuiltins.cmake \ --replace 'bit 32 64' 'bit 64' ''; @@ -78,6 +66,6 @@ stdenv.mkDerivation rec { description = "Intel 'Single Program, Multiple Data' Compiler, a vectorised language"; license = licenses.bsd3; platforms = [ "x86_64-linux" "x86_64-darwin" ]; # TODO: buildable on more platforms? - maintainers = with maintainers; [ aristid thoughtpolice ]; + maintainers = with maintainers; [ aristid thoughtpolice athas ]; }; } |