nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 42 lines 853 B view raw
1{ 2 lib, 3 stdenv, 4 cmake, 5 fetchFromGitHub, 6 rocm-cmake, 7 rocmUpdateScript, 8}: 9stdenv.mkDerivation (finalAttrs: { 10 pname = "hipblas-common"; 11 version = "6.3.3"; 12 13 src = fetchFromGitHub { 14 owner = "ROCm"; 15 repo = "hipBLAS-common"; 16 rev = "rocm-${finalAttrs.version}"; 17 hash = "sha256-tvNz4ymQ1y3YSUQxAtNu2who79QzSKR+3JEevr+GDWo="; 18 }; 19 20 nativeBuildInputs = [ 21 cmake 22 ]; 23 24 buildInputs = [ 25 rocm-cmake 26 ]; 27 28 strictDeps = true; 29 30 passthru.updateScript = rocmUpdateScript { 31 name = finalAttrs.pname; 32 inherit (finalAttrs.src) owner; 33 inherit (finalAttrs.src) repo; 34 }; 35 meta = with lib; { 36 description = "Common files shared by hipBLAS and hipBLASLt"; 37 homepage = "https://github.com/ROCm/hipBLASlt"; 38 license = with licenses; [ mit ]; 39 teams = [ teams.rocm ]; 40 platforms = platforms.linux; 41 }; 42})