oneDNN: use `finalAttrs` pattern

+14 -10
+14 -10
pkgs/development/libraries/oneDNN/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, cmake }: 2 3 # This was originally called mkl-dnn, then it was renamed to dnnl, and it has 4 # just recently been renamed again to oneDNN. See here for details: 5 # https://github.com/oneapi-src/oneDNN#oneapi-deep-neural-network-library-onednn 6 - stdenv.mkDerivation rec { 7 pname = "oneDNN"; 8 version = "3.2.1"; 9 10 src = fetchFromGitHub { 11 owner = "oneapi-src"; 12 repo = "oneDNN"; 13 - rev = "v${version}"; 14 - sha256 = "sha256-/LbT2nHPpZHjY3xbJ9bDabR7aIMvetNP4mB+rxuTfy8="; 15 }; 16 17 outputs = [ "out" "dev" "doc" ]; ··· 30 --replace "\''${_IMPORT_PREFIX}/" "" 31 ''; 32 33 - meta = with lib; { 34 description = "oneAPI Deep Neural Network Library (oneDNN)"; 35 homepage = "https://01.org/oneDNN"; 36 - changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${version}"; 37 - license = licenses.asl20; 38 - platforms = platforms.all; 39 - maintainers = with maintainers; [ bhipple ]; 40 }; 41 - }
··· 1 + { cmake 2 + , fetchFromGitHub 3 + , lib 4 + , stdenv 5 + }: 6 7 # This was originally called mkl-dnn, then it was renamed to dnnl, and it has 8 # just recently been renamed again to oneDNN. See here for details: 9 # https://github.com/oneapi-src/oneDNN#oneapi-deep-neural-network-library-onednn 10 + stdenv.mkDerivation (finalAttrs: { 11 pname = "oneDNN"; 12 version = "3.2.1"; 13 14 src = fetchFromGitHub { 15 owner = "oneapi-src"; 16 repo = "oneDNN"; 17 + rev = "v${finalAttrs.version}"; 18 + hash = "sha256-/LbT2nHPpZHjY3xbJ9bDabR7aIMvetNP4mB+rxuTfy8="; 19 }; 20 21 outputs = [ "out" "dev" "doc" ]; ··· 34 --replace "\''${_IMPORT_PREFIX}/" "" 35 ''; 36 37 + meta = { 38 + changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${finalAttrs.version}"; 39 description = "oneAPI Deep Neural Network Library (oneDNN)"; 40 homepage = "https://01.org/oneDNN"; 41 + license = lib.licenses.asl20; 42 + maintainers = with lib.maintainers; [ bhipple ]; 43 + platforms = lib.platforms.all; 44 }; 45 + })