From 4c36d7e521fb63765ba254b5f6a463be3eccc8c3 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 23 Jan 2018 06:29:03 -0600 Subject: [PATCH 1/2] brotli: run tests --- pkgs/tools/compression/brotli/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/compression/brotli/default.nix b/pkgs/tools/compression/brotli/default.nix index 9a35013e3814..153a38146238 100644 --- a/pkgs/tools/compression/brotli/default.nix +++ b/pkgs/tools/compression/brotli/default.nix @@ -17,6 +17,10 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" "lib" ]; + doCheck = true; + + checkTarget = "test"; + # This breaks on Darwin because our cmake hook tries to make a build folder # and the wonderful bazel BUILD file is already there (yay case-insensitivity?) prePatch = "rm BUILD"; From c4034108453ff8450a58f69244fed3a79716724b Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 23 Jan 2018 06:36:11 -0600 Subject: [PATCH 2/2] brotli: install man pages --- pkgs/tools/compression/brotli/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/compression/brotli/default.nix b/pkgs/tools/compression/brotli/default.nix index 153a38146238..45af74b0b3e5 100644 --- a/pkgs/tools/compression/brotli/default.nix +++ b/pkgs/tools/compression/brotli/default.nix @@ -25,6 +25,14 @@ stdenv.mkDerivation rec { # and the wonderful bazel BUILD file is already there (yay case-insensitivity?) prePatch = "rm BUILD"; + # Don't bother with "man" output for now, + # it currently only makes the manpages hard to use. + postInstall = '' + mkdir -p $out/share/man/man{1,3} + cp ../docs/*.1 $out/share/man/man1/ + cp ../docs/*.3 $out/share/man/man3/ + ''; + meta = with stdenv.lib; { inherit (src.meta) homepage;