summary refs log tree commit diff
path: root/pkgs/development/libraries/physics
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-09-04 06:51:27 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-09-04 06:51:27 -0400
commit76f507357347e41de512039e189e5016edcaa2bb (patch)
tree078b70fe0d2259ac90e4daaf8bee69bf495b6952 /pkgs/development/libraries/physics
parent249cc6f92f3842b519e3c0ccab6c011da4008841 (diff)
pythonPackages.fastjet: init
Diffstat (limited to 'pkgs/development/libraries/physics')
-rw-r--r--pkgs/development/libraries/physics/fastjet/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/libraries/physics/fastjet/default.nix b/pkgs/development/libraries/physics/fastjet/default.nix
index 55d272f405b73..65fb04b707ab9 100644
--- a/pkgs/development/libraries/physics/fastjet/default.nix
+++ b/pkgs/development/libraries/physics/fastjet/default.nix
@@ -1,4 +1,9 @@
-{ lib, stdenv, fetchurl, python2 }:
+{ lib
+, stdenv
+, fetchurl
+, python
+, withPython ? false
+}:
 
 stdenv.mkDerivation rec {
   pname = "fastjet";
@@ -9,12 +14,11 @@ stdenv.mkDerivation rec {
     hash = "sha256-7gfIdHyOrYbYjeSp5OjR6efXYUlz9WMbqCl/egJHi5E=";
   };
 
-  buildInputs = [ python2 ];
+  buildInputs = lib.optional withPython python;
 
   configureFlags = [
     "--enable-allcxxplugins"
-    "--enable-pyext"
-    ];
+  ] ++ lib.optional withPython "--enable-pyext";
 
   enableParallelBuilding = true;