diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2022-12-17 19:58:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 19:58:37 -0500 |
commit | 199975755e7f49f54ee61eee0a1d48fe2999e1de (patch) | |
tree | 8f7f165ccea74d75b239d9c3dc772a430835a8d9 /pkgs/development/libraries/physics | |
parent | f1a4461499e67a74c5c4f00de3e56283d420358b (diff) | |
parent | 49d586773291ceba7a0c63f00a35efb11e05a84b (diff) | |
download | nixpkgs-199975755e7f49f54ee61eee0a1d48fe2999e1de.tar nixpkgs-199975755e7f49f54ee61eee0a1d48fe2999e1de.tar.gz nixpkgs-199975755e7f49f54ee61eee0a1d48fe2999e1de.tar.bz2 nixpkgs-199975755e7f49f54ee61eee0a1d48fe2999e1de.tar.lz nixpkgs-199975755e7f49f54ee61eee0a1d48fe2999e1de.tar.xz nixpkgs-199975755e7f49f54ee61eee0a1d48fe2999e1de.tar.zst nixpkgs-199975755e7f49f54ee61eee0a1d48fe2999e1de.zip |
Merge pull request #205394 from ShamrockLee/root-update
undefined
Diffstat (limited to 'pkgs/development/libraries/physics')
-rw-r--r-- | pkgs/development/libraries/physics/hepmc3/default.nix | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/pkgs/development/libraries/physics/hepmc3/default.nix b/pkgs/development/libraries/physics/hepmc3/default.nix index 999a5231c0b..22e60b20aef 100644 --- a/pkgs/development/libraries/physics/hepmc3/default.nix +++ b/pkgs/development/libraries/physics/hepmc3/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, fetchurl, cmake, coreutils, python, root }: +{ lib +, stdenv +, fetchurl +, cmake +, coreutils +, python +, root +}: let pythonVersion = with lib.versions; "${major python.version}${minor python.version}"; @@ -16,9 +23,14 @@ stdenv.mkDerivation rec { sha256 = "sha256-zQ91yA91VJxZzCqCns52Acd96Xyypat1eQysjh1YUDI="; }; - nativeBuildInputs = [ cmake ]; - buildInputs = [ root_py ] - ++ lib.optional withPython python; + nativeBuildInputs = [ + cmake + ]; + + buildInputs = [ + root_py + ] + ++ lib.optional withPython python; cmakeFlags = [ "-DHEPMC3_ENABLE_PYTHON=${if withPython then "ON" else "OFF"}" |