tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
glew: Add `meta.pkgConfigModules` and test
John Ericson
3 years ago
5fd449df
b58f0d0f
+14
-6
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
glew
1.10.nix
default.nix
+7
-3
pkgs/development/libraries/glew/1.10.nix
reviewed
···
1
1
{ lib, stdenv, fetchurl, libGLU, libXmu, libXi, libXext
2
2
, AGL, OpenGL
3
3
+
, testers
3
4
}:
4
5
5
5
-
stdenv.mkDerivation rec {
6
6
+
stdenv.mkDerivation (finalAttrs: {
6
7
pname = "glew";
7
8
version = "1.10.0";
8
9
9
10
src = fetchurl {
10
10
-
url = "mirror://sourceforge/glew/glew-${version}.tgz";
11
11
+
url = "mirror://sourceforge/glew/${finalAttrs.pname}-${finalAttrs.version}.tgz";
11
12
sha256 = "01zki46dr5khzlyywr3cg615bcal32dazfazkf360s1znqh17i4r";
12
13
};
13
14
···
42
41
"SYSTEM=${if stdenv.hostPlatform.isMinGW then "mingw" else stdenv.hostPlatform.parsed.kernel.name}"
43
42
];
44
43
44
44
+
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
45
45
+
45
46
meta = with lib; {
46
47
description = "An OpenGL extension loading library for C(++)";
47
48
homepage = "https://glew.sourceforge.net/";
48
49
license = licenses.free; # different files under different licenses
49
50
#["BSD" "GLX" "SGI-B" "GPL2"]
51
51
+
pkgConfigModules = [ "glew" ];
50
52
platforms = platforms.mesaPlatforms;
51
53
};
52
52
-
}
54
54
+
})
+7
-3
pkgs/development/libraries/glew/default.nix
reviewed
···
1
1
{ lib, stdenv, fetchurl, fetchpatch, cmake, libGLU, libXmu, libXi, libXext
2
2
, OpenGL
3
3
, enableEGL ? false
4
4
+
, testers
4
5
}:
5
6
6
6
-
stdenv.mkDerivation rec {
7
7
+
stdenv.mkDerivation (finalAttrs: {
7
8
pname = "glew";
8
9
version = "2.2.0";
9
10
10
11
src = fetchurl {
11
11
-
url = "mirror://sourceforge/glew/${pname}-${version}.tgz";
12
12
+
url = "mirror://sourceforge/glew/${finalAttrs.pname}-${finalAttrs.version}.tgz";
12
13
sha256 = "1qak8f7g1iswgswrgkzc7idk7jmqgwrs58fhg2ai007v7j4q5z6l";
13
14
};
14
15
···
45
44
EOF
46
45
'';
47
46
47
47
+
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
48
48
+
48
49
meta = with lib; {
49
50
description = "An OpenGL extension loading library for C/C++";
50
51
homepage = "https://glew.sourceforge.net/";
51
52
license = with licenses; [ /* modified bsd */ free mit gpl2Only ]; # For full details, see https://github.com/nigels-com/glew#copyright-and-licensing
53
53
+
pkgConfigModules = [ "glew" ];
52
54
platforms = with platforms;
53
55
if enableEGL then
54
56
subtractLists darwin mesaPlatforms
55
57
else
56
58
mesaPlatforms;
57
59
};
58
58
-
}
60
60
+
})