tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
liblapack: Add `meta.pkgConfigModules` and test
John Ericson
2 years ago
3f8b1578
b7e9a15a
+9
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
science
math
liblapack
default.nix
+9
-5
pkgs/development/libraries/science/math/liblapack/default.nix
···
6
6
, shared ? true
7
7
# Compile with ILP64 interface
8
8
, blas64 ? false
9
9
+
, testers
9
10
}:
10
11
11
11
-
stdenv.mkDerivation rec {
12
12
+
stdenv.mkDerivation (finalAttrs: {
12
13
pname = "liblapack";
13
14
version = "3.11";
14
15
15
16
src = fetchFromGitHub {
16
17
owner = "Reference-LAPACK";
17
18
repo = "lapack";
18
18
-
rev = "v${version}";
19
19
+
rev = "v${finalAttrs.version}";
19
20
sha256 = "sha256-AYD78u70y8cY19hmM/aDjQEzxO8u9lPWhCFxRe5cqXI=";
20
21
};
21
22
···
40
41
41
42
postInstall = let
42
43
canonicalExtension = if stdenv.hostPlatform.isLinux
43
43
-
then "${stdenv.hostPlatform.extensions.sharedLibrary}.${lib.versions.major version}"
44
44
+
then "${stdenv.hostPlatform.extensions.sharedLibrary}.${lib.versions.major finalAttrs.version}"
44
45
else stdenv.hostPlatform.extensions.sharedLibrary;
45
46
in lib.optionalString blas64 ''
46
47
ln -s $out/lib/liblapack64${canonicalExtension} $out/lib/liblapack${canonicalExtension}
···
65
66
66
67
checkPhase = ''
67
68
runHook preCheck
68
68
-
ctest ${ctestArgs}
69
69
+
ctest ${finalAttrs.ctestArgs}
69
70
runHook postCheck
70
71
'';
72
72
+
73
73
+
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
71
74
72
75
meta = with lib; {
73
76
description = "Linear Algebra PACKage";
74
77
homepage = "http://www.netlib.org/lapack/";
75
78
maintainers = with maintainers; [ markuskowa ];
76
79
license = licenses.bsd3;
80
80
+
pkgConfigModules = [ "lapack" ];
77
81
platforms = platforms.all;
78
82
};
79
79
-
}
83
83
+
})