nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 rocmUpdateScript,
6 cmake,
7 rocm-cmake,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "half";
12 version = "6.3.3";
13
14 src = fetchFromGitHub {
15 owner = "ROCm";
16 repo = "half";
17 rev = "rocm-${finalAttrs.version}";
18 hash = "sha256-H8Ogm4nxaxDB0WHx+KhRjUO3vzp3AwCqrIQ6k8R+xkc=";
19 };
20
21 nativeBuildInputs = [
22 cmake
23 rocm-cmake
24 ];
25
26 passthru.updateScript = rocmUpdateScript {
27 name = finalAttrs.pname;
28 inherit (finalAttrs.src) owner;
29 inherit (finalAttrs.src) repo;
30 };
31
32 meta = with lib; {
33 description = "C++ library for half precision floating point arithmetics";
34 homepage = "https://github.com/ROCm/half";
35 license = with licenses; [ mit ];
36 teams = [ teams.rocm ];
37 platforms = platforms.unix;
38 };
39})