tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
brotli: Add `meta.pkgConfigModules` and test
John Ericson
2 years ago
d488c432
bbed2700
+10
-3
1 changed file
expand all
collapse all
unified
split
pkgs
tools
compression
brotli
default.nix
+10
-3
pkgs/tools/compression/brotli/default.nix
···
4
4
, cmake
5
5
, fetchpatch
6
6
, staticOnly ? stdenv.hostPlatform.isStatic
7
7
+
, testers
7
8
}:
8
9
9
10
# ?TODO: there's also python lib in there
10
11
11
11
-
stdenv.mkDerivation rec {
12
12
+
stdenv.mkDerivation (finalAttrs: {
12
13
pname = "brotli";
13
14
version = "1.0.9";
14
15
15
16
src = fetchFromGitHub {
16
17
owner = "google";
17
18
repo = "brotli";
18
18
-
rev = "v${version}";
19
19
+
rev = "v${finalAttrs.version}";
19
20
sha256 = "z6Dhrabav1MDQ4rAcXaDv0aN+qOoh9cvoXZqEWBB13c=";
20
21
};
21
22
···
55
56
cp ../docs/*.3 $out/share/man/man3/
56
57
'';
57
58
59
59
+
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
60
60
+
58
61
meta = with lib; {
59
62
homepage = "https://github.com/google/brotli";
60
63
description = "A generic-purpose lossless compression algorithm and tool";
···
72
75
'';
73
76
license = licenses.mit;
74
77
maintainers = with maintainers; [ freezeboy ];
78
78
+
pkgConfigModules = [
79
79
+
"libbrotlidec"
80
80
+
"libbrotlienc"
81
81
+
];
75
82
platforms = platforms.all;
76
83
};
77
77
-
}
84
84
+
})