git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #34191 from dtzWill/fix/brotli-misc

brotli: tests, install man pages

commitb8419d56518e7d1a4a4b0377ea451246996e9788 authorGraham Christensen <graham@grahamc.com> dateWed 24 Jan 2018, 15:45 (9 years ago) parent9b245b5c403410
1 file changed+12
pkgs/tools/compression/brotli/default.nix+12
pkgs/tools/compression/brotli/default.nix+12
@@ -17,10 +17,22 @@ stdenv.mkDerivation rec {
1717
1818 outputs = [ "out" "dev" "lib" ];
1919
20+ doCheck = true;
21+
22+ checkTarget = "test";
23+
2024 # This breaks on Darwin because our cmake hook tries to make a build folder
2125 # and the wonderful bazel BUILD file is already there (yay case-insensitivity?)
2226 prePatch = "rm BUILD";
2327
28+ # Don't bother with "man" output for now,
29+ # it currently only makes the manpages hard to use.
30+ postInstall = ''
31+ mkdir -p $out/share/man/man{1,3}
32+ cp ../docs/*.1 $out/share/man/man1/
33+ cp ../docs/*.3 $out/share/man/man3/
34+ '';
35+
2436 meta = with stdenv.lib; {
2537 inherit (src.meta) homepage;
2638