tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
oneDNN_2: use `finalAttrs` pattern
Pol Dellaiera
2 years ago
ccf92769
3575b65b
+13
-9
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
oneDNN
2.nix
+13
-9
pkgs/development/libraries/oneDNN/2.nix
···
1
1
-
{ stdenv, lib, fetchFromGitHub, cmake }:
1
1
+
{ cmake
2
2
+
, fetchFromGitHub
3
3
+
, lib
4
4
+
, stdenv
5
5
+
}:
2
6
3
7
# This was originally called mkl-dnn, then it was renamed to dnnl, and it has
4
8
# just recently been renamed again to oneDNN. See here for details:
5
9
# https://github.com/oneapi-src/oneDNN#oneapi-deep-neural-network-library-onednn
6
6
-
stdenv.mkDerivation rec {
10
10
+
stdenv.mkDerivation (finalAttrs: {
7
11
pname = "oneDNN";
8
12
version = "2.7.5";
9
13
10
14
src = fetchFromGitHub {
11
15
owner = "oneapi-src";
12
16
repo = "oneDNN";
13
13
-
rev = "v${version}";
17
17
+
rev = "v${finalAttrs.version}";
14
18
sha256 = "sha256-oMPBORAdL2rk2ewyUrInYVHYBRvuvNX4p4rwykO3Rhs=";
15
19
};
16
20
···
30
34
--replace "\''${_IMPORT_PREFIX}/" ""
31
35
'';
32
36
33
33
-
meta = with lib; {
37
37
+
meta = {
38
38
+
changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${finalAttrs.version}";
34
39
description = "oneAPI Deep Neural Network Library (oneDNN)";
35
40
homepage = "https://01.org/oneDNN";
36
36
-
changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${version}";
37
37
-
license = licenses.asl20;
38
38
-
platforms = platforms.all;
39
39
-
maintainers = with maintainers; [ alexarice bhipple ];
41
41
+
license = lib.licenses.asl20;
42
42
+
maintainers = with lib.maintainers; [ alexarice bhipple ];
43
43
+
platforms = lib.platforms.all;
40
44
};
41
41
-
}
45
45
+
})