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
-
{ stdenv, lib, fetchFromGitHub, cmake }:
0
0
0
0
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 = "2.7.5";
9
10
src = fetchFromGitHub {
11
owner = "oneapi-src";
12
repo = "oneDNN";
13
-
rev = "v${version}";
14
sha256 = "sha256-oMPBORAdL2rk2ewyUrInYVHYBRvuvNX4p4rwykO3Rhs=";
15
};
16
···
30
--replace "\''${_IMPORT_PREFIX}/" ""
31
'';
32
33
-
meta = with lib; {
0
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; [ alexarice 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 = "2.7.5";
13
14
src = fetchFromGitHub {
15
owner = "oneapi-src";
16
repo = "oneDNN";
17
+
rev = "v${finalAttrs.version}";
18
sha256 = "sha256-oMPBORAdL2rk2ewyUrInYVHYBRvuvNX4p4rwykO3Rhs=";
19
};
20
···
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; [ alexarice bhipple ];
43
+
platforms = lib.platforms.all;
0
44
};
45
+
})