amd-blis: cleanup, refactor

* use finalAttrs
* remove `wiht lib;` from meta
* update comments

+7 -7
+7 -7
pkgs/by-name/am/amd-blis/package.nix
··· 10 11 # Target architecture. "amdzen" compiles kernels for all Zen 12 # generations. To build kernels for specific Zen generations, 13 - # use "zen", "zen2", "zen3", or "zen4". 14 withArchitecture ? "amdzen", 15 16 # Enable OpenMP-based threading. ··· 22 blasIntSize = if blas64 then "64" else "32"; 23 24 in 25 - stdenv.mkDerivation rec { 26 pname = "amd-blis"; 27 version = "5.1"; 28 29 src = fetchFromGitHub { 30 owner = "amd"; 31 repo = "blis"; 32 - rev = version; 33 hash = "sha256-hqb/Q1CBqtC4AXqHNd7voewGUD675hJ9IwvP3Mn9b+M="; 34 }; 35 ··· 66 ln -s $out/lib/libcblas.so.3 $out/lib/libcblas.so 67 ''; 68 69 - meta = with lib; { 70 description = "BLAS-compatible library optimized for AMD CPUs"; 71 homepage = "https://developer.amd.com/amd-aocl/blas-library/"; 72 - license = licenses.bsd3; 73 - maintainers = [ maintainers.markuskowa ]; 74 platforms = [ "x86_64-linux" ]; 75 }; 76 - }
··· 10 11 # Target architecture. "amdzen" compiles kernels for all Zen 12 # generations. To build kernels for specific Zen generations, 13 + # use "zen", "zen2", "zen3", "zen4", or "zen5". 14 withArchitecture ? "amdzen", 15 16 # Enable OpenMP-based threading. ··· 22 blasIntSize = if blas64 then "64" else "32"; 23 24 in 25 + stdenv.mkDerivation (finalAttrs: { 26 pname = "amd-blis"; 27 version = "5.1"; 28 29 src = fetchFromGitHub { 30 owner = "amd"; 31 repo = "blis"; 32 + rev = finalAttrs.version; 33 hash = "sha256-hqb/Q1CBqtC4AXqHNd7voewGUD675hJ9IwvP3Mn9b+M="; 34 }; 35 ··· 66 ln -s $out/lib/libcblas.so.3 $out/lib/libcblas.so 67 ''; 68 69 + meta = { 70 description = "BLAS-compatible library optimized for AMD CPUs"; 71 homepage = "https://developer.amd.com/amd-aocl/blas-library/"; 72 + license = lib.licenses.bsd3; 73 + maintainers = [ lib.maintainers.markuskowa ]; 74 platforms = [ "x86_64-linux" ]; 75 }; 76 + })