nixpkgs/pkgs/by-name/ko/kokkos/package.nix
2024-08-19 21:47:55 +00:00

45 lines
944 B
Nix

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