libepoxy: added test for pkg-config modules
This commit is contained in:
parent
ae8b023ac9
commit
51c7525a64
1 changed files with 11 additions and 4 deletions
|
@ -11,13 +11,14 @@
|
||||||
, Carbon
|
, Carbon
|
||||||
, OpenGL
|
, OpenGL
|
||||||
, x11Support ? !stdenv.isDarwin
|
, x11Support ? !stdenv.isDarwin
|
||||||
|
, testers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "libepoxy";
|
pname = "libepoxy";
|
||||||
version = "1.5.10";
|
version = "1.5.10";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = with finalAttrs; fetchFromGitHub {
|
||||||
owner = "anholt";
|
owner = "anholt";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
|
@ -58,7 +59,7 @@ stdenv.mkDerivation rec {
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Degl=${if (x11Support && !stdenv.isDarwin) then "yes" else "no"}"
|
"-Degl=${if (x11Support && !stdenv.isDarwin) then "yes" else "no"}"
|
||||||
"-Dglx=${if x11Support then "yes" else "no"}"
|
"-Dglx=${if x11Support then "yes" else "no"}"
|
||||||
"-Dtests=${lib.boolToString doCheck}"
|
"-Dtests=${lib.boolToString finalAttrs.doCheck}"
|
||||||
"-Dx11=${lib.boolToString x11Support}"
|
"-Dx11=${lib.boolToString x11Support}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -66,6 +67,12 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
pkg-config = testers.hasPkgConfigModules {
|
||||||
|
package = finalAttrs.finalPackage;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A library for handling OpenGL function pointer management";
|
description = "A library for handling OpenGL function pointer management";
|
||||||
homepage = "https://github.com/anholt/libepoxy";
|
homepage = "https://github.com/anholt/libepoxy";
|
||||||
|
@ -74,4 +81,4 @@ stdenv.mkDerivation rec {
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
pkgConfigModules = [ "epoxy" ];
|
pkgConfigModules = [ "epoxy" ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue