Skip to content

Commit

Permalink
Merge pull request #194941 from Artturin/libxml2strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin authored Oct 8, 2022
2 parents cdfb8a3 + 09226ff commit f9f82fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nixos/lib/make-options-doc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ in rec {

optionsJSON = pkgs.runCommand "options.json"
{ meta.description = "List of NixOS options in JSON format";
buildInputs = [
nativeBuildInputs = [
pkgs.brotli
(let
self = (pkgs.python3Minimal.override {
Expand Down
7 changes: 5 additions & 2 deletions pkgs/development/libraries/libxml2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
, ncurses
, findXMLCatalogs
, libiconv
, pythonSupport ? enableShared && stdenv.buildPlatform == stdenv.hostPlatform
, pythonSupport ? enableShared
, icuSupport ? false
, icu
, enableShared ? stdenv.hostPlatform.libc != "msvcrt" && !stdenv.hostPlatform.isStatic
Expand Down Expand Up @@ -60,6 +60,8 @@ stdenv.mkDerivation rec {
})
];

strictDeps = true;

nativeBuildInputs = [
pkg-config
autoreconfHook
Expand Down Expand Up @@ -94,7 +96,8 @@ stdenv.mkDerivation rec {
(lib.enableFeature enableStatic "static")
(lib.enableFeature enableShared "shared")
(lib.withFeature icuSupport "icu")
(lib.withFeatureAs pythonSupport "python" python)
(lib.withFeature pythonSupport "python")
(lib.optionalString pythonSupport "PYTHON=${python.pythonForBuild.interpreter}")
];

installFlags = lib.optionals pythonSupport [
Expand Down
7 changes: 5 additions & 2 deletions pkgs/development/libraries/libxslt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
, ncurses
, libgcrypt
, cryptoSupport ? false
, pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform
, pythonSupport ? true
, gnome
}:

Expand All @@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
sha256 = "EoSPCkQI9ltTDTlizZ/2cLaueWGRz+/zdSK1dy3o3I4=";
};

strictDeps = true;

nativeBuildInputs = [
pkg-config
autoreconfHook
Expand All @@ -51,7 +53,8 @@ stdenv.mkDerivation rec {
"--without-debug"
"--without-mem-debug"
"--without-debugger"
(lib.withFeatureAs pythonSupport "python" python)
(lib.withFeature pythonSupport "python")
(lib.optionalString pythonSupport "PYTHON=${python.pythonForBuild.interpreter}")
] ++ lib.optionals (!cryptoSupport) [
"--without-crypto"
];
Expand Down

0 comments on commit f9f82fd

Please sign in to comment.