From 7b9b6d27d312d7c0701616cbd992f405e7f95024 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Fri, 15 Apr 2016 17:18:29 +0200 Subject: [PATCH] cppcheck: split man output --- pkgs/development/tools/analysis/cppcheck/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/analysis/cppcheck/default.nix b/pkgs/development/tools/analysis/cppcheck/default.nix index e89d8c113a16..89a37cffc28e 100644 --- a/pkgs/development/tools/analysis/cppcheck/default.nix +++ b/pkgs/development/tools/analysis/cppcheck/default.nix @@ -16,10 +16,12 @@ stdenv.mkDerivation rec { makeFlags = ''PREFIX=$(out) CFGDIR=$(out)/cfg''; + outputs = [ "out" "man" ]; + postInstall = '' make DB2MAN=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl man - mkdir -p $out/share/man/man1 - cp cppcheck.1 $out/share/man/man1/cppcheck.1 + mkdir -p $man/share/man/man1 + cp cppcheck.1 $man/share/man/man1/cppcheck.1 ''; meta = with stdenv.lib; {