tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
freeault: Add `meta.pkgConfigModules` and test
John Ericson
3 years ago
3d239f2b
e7d06f4b
+9
-4
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
freealut
default.nix
+9
-4
pkgs/development/libraries/freealut/default.nix
···
1
-
{ lib, stdenv, darwin, fetchurl, openal }:
0
0
2
3
-
stdenv.mkDerivation rec {
4
pname = "freealut";
5
version = "1.1.0";
6
7
src = fetchurl {
8
-
url = "http://www.openal.org/openal_webstf/downloads/freealut-${version}.tar.gz";
9
sha256 = "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0";
10
};
11
···
13
] ++ lib.optional stdenv.isDarwin
14
darwin.apple_sdk.frameworks.OpenAL
15
;
0
0
16
17
meta = {
18
homepage = "http://openal.org/";
19
description = "Free implementation of OpenAL's ALUT standard";
20
license = lib.licenses.lgpl2;
0
21
platforms = lib.platforms.unix;
22
};
23
-
}
···
1
+
{ lib, stdenv, darwin, fetchurl, openal
2
+
, testers
3
+
}:
4
5
+
stdenv.mkDerivation (finalAttrs: {
6
pname = "freealut";
7
version = "1.1.0";
8
9
src = fetchurl {
10
+
url = "http://www.openal.org/openal_webstf/downloads/freealut-${finalAttrs.version}.tar.gz";
11
sha256 = "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0";
12
};
13
···
15
] ++ lib.optional stdenv.isDarwin
16
darwin.apple_sdk.frameworks.OpenAL
17
;
18
+
19
+
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
20
21
meta = {
22
homepage = "http://openal.org/";
23
description = "Free implementation of OpenAL's ALUT standard";
24
license = lib.licenses.lgpl2;
25
+
pkgConfigModules = [ "freealut" ];
26
platforms = lib.platforms.unix;
27
};
28
+
})