diff options
Diffstat (limited to 'pkgs/development/libraries/physics/lhapdf/default.nix')
-rw-r--r-- | pkgs/development/libraries/physics/lhapdf/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/physics/lhapdf/default.nix b/pkgs/development/libraries/physics/lhapdf/default.nix index c31d9794407..991309b54d4 100644 --- a/pkgs/development/libraries/physics/lhapdf/default.nix +++ b/pkgs/development/libraries/physics/lhapdf/default.nix @@ -16,10 +16,12 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ makeWrapper ] - ++ lib.optionals (lib.versionAtLeast python.version "3.10") [ python.pkgs.cython ]; + ++ lib.optionals (python != null && lib.versionAtLeast python.version "3.10") [ python.pkgs.cython ]; buildInputs = [ python ]; - preBuild = lib.optionalString (lib.versionAtLeast python.version "3.10") '' + configureFlags = lib.optionals (python == null) [ "--disable-python" ]; + + preBuild = lib.optionalString (python != null && lib.versionAtLeast python.version "3.10") '' rm wrappers/python/lhapdf.cpp ''; |