Skip to content

Commit

Permalink
libxml2: More cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Feb 21, 2022
1 parent 9c57fa9 commit 65ca2a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkgs/development/libraries/libxml2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
, libiconv
, pythonSupport ? enableShared && stdenv.buildPlatform == stdenv.hostPlatform
, icuSupport ? false
, icu ? null
, icu
, enableShared ? stdenv.hostPlatform.libc != "msvcrt" && !stdenv.hostPlatform.isStatic
, enableStatic ? !enableShared
, gnome
Expand Down Expand Up @@ -95,7 +95,7 @@ stdenv.mkDerivation rec {
];

installFlags = lib.optionals pythonSupport [
"pythondir=\"${placeholder "py"}/lib/${python.libPrefix}/site-packages\""
"pythondir=\"${placeholder "py"}/${python.sitePackages}\""
];

enableParallelBuilding = true;
Expand All @@ -109,8 +109,9 @@ stdenv.mkDerivation rec {
MACOSX_DEPLOYMENT_TARGET=10.16
'';

preInstall = lib.optionalString pythonSupport
''substituteInPlace python/libxml2mod.la --replace "${python}" "$py"'';
preInstall = lib.optionalString pythonSupport ''
substituteInPlace python/libxml2mod.la --replace "${python}" "$py"
'';

postFixup = ''
moveToOutput bin/xml2-config "$dev"
Expand Down

0 comments on commit 65ca2a4

Please sign in to comment.