nixpkgs/pkgs/by-name/ko/kokkos/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
944 B
Nix
Raw Normal View History

2023-10-16 14:34:02 +01:00
{ lib
, stdenv
, fetchFromGitHub
, gitUpdater
, cmake
, python3
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kokkos";
2024-08-19 22:47:55 +01:00
version = "4.4.00";
2023-10-16 14:34:02 +01:00
src = fetchFromGitHub {
owner = "kokkos";
repo = "kokkos";
rev = finalAttrs.version;
2024-08-19 22:47:55 +01:00
hash = "sha256-cEHGFmnYp5tPQ9BzRKopS78kAEBH+nNMRGJuWmpoHc0=";
2023-10-16 14:34:02 +01:00
};
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";
2024-06-16 21:48:03 +01:00
changelog = "https://github.com/kokkos/kokkos/blob/${finalAttrs.src.rev}/CHANGELOG.md";
2023-10-16 14:34:02 +01:00
license = with licenses; [ asl20-llvm ];
maintainers = with maintainers; [ Madouura ];
platforms = platforms.unix;
broken = stdenv.isDarwin;
};
})