mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
46 lines
957 B
Nix
46 lines
957 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, gitUpdater
|
|
, cmake
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "kokkos";
|
|
version = "4.4.01";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kokkos";
|
|
repo = "kokkos";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-VpUbvSQ6PQhhm9ovj97U9XEdbfro9K+LSmeSiNpqHuI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
python3
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "Kokkos_ENABLE_TESTS" true)
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
doCheck = true;
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "C++ Performance Portability Programming EcoSystem";
|
|
homepage = "https://github.com/kokkos/kokkos";
|
|
changelog = "https://github.com/kokkos/kokkos/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
|
license = with licenses; [ asl20-llvm ];
|
|
maintainers = with maintainers; [ Madouura ];
|
|
platforms = platforms.unix;
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
})
|