Files
2026-07-15 14:04:39 -04:00

36 lines
706 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
rocmUpdateScript,
cmake,
rocm-cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "half";
version = "7.2.3";
src = fetchFromGitHub {
owner = "ROCm";
repo = "half";
rev = "rocm-${finalAttrs.version}";
hash = "sha256-If9O5BEeymsLN+C0drZsPSxEWXpJTxeDBGNHNXSumm4=";
};
nativeBuildInputs = [
cmake
rocm-cmake
];
passthru.updateScript = rocmUpdateScript { inherit finalAttrs; };
meta = {
description = "C++ library for half precision floating point arithmetics";
homepage = "https://github.com/ROCm/half";
license = lib.licenses.mit;
teams = [ lib.teams.rocm ];
platforms = lib.platforms.unix;
};
})