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
, cmake
5
, fetchpatch
6
, staticOnly ? stdenv.hostPlatform.isStatic
0
7
}:
8
9
# ?TODO: there's also python lib in there
10
11
-
stdenv.mkDerivation rec {
12
pname = "brotli";
13
version = "1.0.9";
14
15
src = fetchFromGitHub {
16
owner = "google";
17
repo = "brotli";
18
-
rev = "v${version}";
19
sha256 = "z6Dhrabav1MDQ4rAcXaDv0aN+qOoh9cvoXZqEWBB13c=";
20
};
21
···
55
cp ../docs/*.3 $out/share/man/man3/
56
'';
57
0
0
58
meta = with lib; {
59
homepage = "https://github.com/google/brotli";
60
description = "A generic-purpose lossless compression algorithm and tool";
···
72
'';
73
license = licenses.mit;
74
maintainers = with maintainers; [ freezeboy ];
0
0
0
0
75
platforms = platforms.all;
76
};
77
-
}
···
4
, cmake
5
, fetchpatch
6
, staticOnly ? stdenv.hostPlatform.isStatic
7
+
, testers
8
}:
9
10
# ?TODO: there's also python lib in there
11
12
+
stdenv.mkDerivation (finalAttrs: {
13
pname = "brotli";
14
version = "1.0.9";
15
16
src = fetchFromGitHub {
17
owner = "google";
18
repo = "brotli";
19
+
rev = "v${finalAttrs.version}";
20
sha256 = "z6Dhrabav1MDQ4rAcXaDv0aN+qOoh9cvoXZqEWBB13c=";
21
};
22
···
56
cp ../docs/*.3 $out/share/man/man3/
57
'';
58
59
+
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
60
+
61
meta = with lib; {
62
homepage = "https://github.com/google/brotli";
63
description = "A generic-purpose lossless compression algorithm and tool";
···
75
'';
76
license = licenses.mit;
77
maintainers = with maintainers; [ freezeboy ];
78
+
pkgConfigModules = [
79
+
"libbrotlidec"
80
+
"libbrotlienc"
81
+
];
82
platforms = platforms.all;
83
};
84
+
})