summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-06-18 03:16:05 +0200
committerJan Tojnar <jtojnar@gmail.com>2019-06-18 03:16:05 +0200
commitcf41cb2b4accb45d5e8514b5d97e63945800ed88 (patch)
tree0848903305e2cb6fc3d68720ab4055f3aa75516f
parent8e7cea5cb8416adac27a375723d1d208fefe0cf5 (diff)
downloadnixpkgs-cf41cb2b4accb45d5e8514b5d97e63945800ed88.tar
nixpkgs-cf41cb2b4accb45d5e8514b5d97e63945800ed88.tar.gz
nixpkgs-cf41cb2b4accb45d5e8514b5d97e63945800ed88.tar.bz2
nixpkgs-cf41cb2b4accb45d5e8514b5d97e63945800ed88.tar.lz
nixpkgs-cf41cb2b4accb45d5e8514b5d97e63945800ed88.tar.xz
nixpkgs-cf41cb2b4accb45d5e8514b5d97e63945800ed88.tar.zst
nixpkgs-cf41cb2b4accb45d5e8514b5d97e63945800ed88.zip
libxmlxx3: split out doc output
-rw-r--r--pkgs/development/libraries/libxmlxx/v3.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libxmlxx/v3.nix b/pkgs/development/libraries/libxmlxx/v3.nix
index 5b87c48a9bd..94c2ca09582 100644
--- a/pkgs/development/libraries/libxmlxx/v3.nix
+++ b/pkgs/development/libraries/libxmlxx/v3.nix
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
     sha256 = "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r";
   };
 
-  outputs = [ "out" "dev" "devdoc" ];
+  outputs = [ "out" "dev" "doc" "devdoc" ];
 
   nativeBuildInputs = [ pkgconfig perl ];
 
@@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
 
   propagatedBuildInputs = [ libxml2 ];
 
+  postFixup = ''
+    substituteInPlace $dev/lib/pkgconfig/libxml++-3.0.pc \
+      --replace 'docdir=''${datarootdir}' "docdir=$doc/share"
+  '';
+
   meta = with stdenv.lib; {
     homepage = http://libxmlplusplus.sourceforge.net/;
     description = "C++ wrapper for the libxml2 XML parser library, version 3";