diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-08-16 17:16:06 +0200 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-08-16 17:16:06 +0200 |
commit | 3575b65b68012f7bcfbe8ab2b187186f51d74693 (patch) | |
tree | e207fdd4ed121282c6418b5dfb4e8fb77fbba4b0 /pkgs/development/libraries/oneDNN | |
parent | cff61911e32dac371369a2f6a2928958ca1f9445 (diff) |
oneDNN: use `finalAttrs` pattern
Diffstat (limited to 'pkgs/development/libraries/oneDNN')
-rw-r--r-- | pkgs/development/libraries/oneDNN/default.nix | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/pkgs/development/libraries/oneDNN/default.nix b/pkgs/development/libraries/oneDNN/default.nix index f7495d3e9c8ca..7448a99439d0f 100644 --- a/pkgs/development/libraries/oneDNN/default.nix +++ b/pkgs/development/libraries/oneDNN/default.nix @@ -1,17 +1,21 @@ -{ stdenv, lib, fetchFromGitHub, cmake }: +{ cmake +, fetchFromGitHub +, lib +, stdenv +}: # This was originally called mkl-dnn, then it was renamed to dnnl, and it has # just recently been renamed again to oneDNN. See here for details: # https://github.com/oneapi-src/oneDNN#oneapi-deep-neural-network-library-onednn -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "oneDNN"; version = "3.2.1"; src = fetchFromGitHub { owner = "oneapi-src"; repo = "oneDNN"; - rev = "v${version}"; - sha256 = "sha256-/LbT2nHPpZHjY3xbJ9bDabR7aIMvetNP4mB+rxuTfy8="; + rev = "v${finalAttrs.version}"; + hash = "sha256-/LbT2nHPpZHjY3xbJ9bDabR7aIMvetNP4mB+rxuTfy8="; }; outputs = [ "out" "dev" "doc" ]; @@ -30,12 +34,12 @@ stdenv.mkDerivation rec { --replace "\''${_IMPORT_PREFIX}/" "" ''; - meta = with lib; { + meta = { + changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${finalAttrs.version}"; description = "oneAPI Deep Neural Network Library (oneDNN)"; homepage = "https://01.org/oneDNN"; - changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${version}"; - license = licenses.asl20; - platforms = platforms.all; - maintainers = with maintainers; [ bhipple ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ bhipple ]; + platforms = lib.platforms.all; }; -} +}) |