mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
45 lines
852 B
Nix
45 lines
852 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, gitUpdater
|
|
, cmake
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "kokkos";
|
|
version = "4.2.01";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kokkos";
|
|
repo = "kokkos";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-d8GB7+hHqpD5KPeYmiXmT5+6W64j3bbTs2hoFYJnfa8=";
|
|
};
|
|
|
|
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";
|
|
license = with licenses; [ asl20-llvm ];
|
|
maintainers = with maintainers; [ Madouura ];
|
|
platforms = platforms.unix;
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
})
|