summary refs log tree commit diff
path: root/pkgs/development/libraries/libxslt
diff options
context:
space:
mode:
authorIvan Babrou <github@ivan.computer>2021-01-29 18:01:55 -0800
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2021-02-01 08:47:36 +0100
commitb2ce768e6023301e5f9689e85a66dfbae2a3ce2e (patch)
treea845af01eaae1b0e9428c70ef3a6bd0cae65515f /pkgs/development/libraries/libxslt
parent86de9261f8e08c79e84231c038abaeb276a732b4 (diff)
downloadnixpkgs-b2ce768e6023301e5f9689e85a66dfbae2a3ce2e.tar
nixpkgs-b2ce768e6023301e5f9689e85a66dfbae2a3ce2e.tar.gz
nixpkgs-b2ce768e6023301e5f9689e85a66dfbae2a3ce2e.tar.bz2
nixpkgs-b2ce768e6023301e5f9689e85a66dfbae2a3ce2e.tar.lz
nixpkgs-b2ce768e6023301e5f9689e85a66dfbae2a3ce2e.tar.xz
nixpkgs-b2ce768e6023301e5f9689e85a66dfbae2a3ce2e.tar.zst
nixpkgs-b2ce768e6023301e5f9689e85a66dfbae2a3ce2e.zip
libxslt: make python3 an input
Diffstat (limited to 'pkgs/development/libraries/libxslt')
-rw-r--r--pkgs/development/libraries/libxslt/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libxslt/default.nix b/pkgs/development/libraries/libxslt/default.nix
index eff9f2b2b79..650e17d3179 100644
--- a/pkgs/development/libraries/libxslt/default.nix
+++ b/pkgs/development/libraries/libxslt/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, fetchpatch, libxml2, findXMLCatalogs, gettext, python, libgcrypt
+{ lib, stdenv, fetchurl, fetchpatch, libxml2, findXMLCatalogs, gettext, python3, libgcrypt
 , cryptoSupport ? false
 , pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform
 }:
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ libxml2.dev ]
     ++ lib.optional stdenv.isDarwin gettext
-    ++ lib.optionals pythonSupport [ libxml2.py python ]
+    ++ lib.optionals pythonSupport [ libxml2.py python3 ]
     ++ lib.optionals cryptoSupport [ libgcrypt ];
 
   propagatedBuildInputs = [ findXMLCatalogs ];
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
     "--without-debug"
     "--without-mem-debug"
     "--without-debugger"
-  ] ++ lib.optional pythonSupport "--with-python=${python}"
+  ] ++ lib.optional pythonSupport "--with-python=${python3}"
     ++ lib.optional (!cryptoSupport) "--without-crypto";
 
   postFixup = ''
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
   '' + lib.optionalString pythonSupport ''
     mkdir -p $py/nix-support
     echo ${libxml2.py} >> $py/nix-support/propagated-build-inputs
-    moveToOutput ${python.libPrefix} "$py"
+    moveToOutput ${python3.libPrefix} "$py"
   '';
 
   passthru = {