depot/third_party/nixpkgs/pkgs/by-name/ko/kokkos/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

45 lines
944 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, gitUpdater
, cmake
, python3
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kokkos";
version = "4.3.01";
src = fetchFromGitHub {
owner = "kokkos";
repo = "kokkos";
rev = finalAttrs.version;
hash = "sha256-x496DKEBMNUUZ2rBNT2MPBV8Obi5aUKQuHwjLiNPMhk=";
};
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.isDarwin;
};
})