diff options
author | Shamrock Lee <44064051+ShamrockLee@users.noreply.github.com> | 2022-12-10 09:38:31 +0800 |
---|---|---|
committer | Shamrock Lee <44064051+ShamrockLee@users.noreply.github.com> | 2022-12-11 18:00:35 +0800 |
commit | 682eac0d2222909f5b8914e5d66d145d1d67783d (patch) | |
tree | 1ea2bad4b31b61e2c63f7a2d645b03c83adf0577 /pkgs/development/libraries/physics | |
parent | e23f5f4f92948f35ba2c355654bd1ce3684b9450 (diff) | |
download | nixpkgs-682eac0d2222909f5b8914e5d66d145d1d67783d.tar nixpkgs-682eac0d2222909f5b8914e5d66d145d1d67783d.tar.gz nixpkgs-682eac0d2222909f5b8914e5d66d145d1d67783d.tar.bz2 nixpkgs-682eac0d2222909f5b8914e5d66d145d1d67783d.tar.lz nixpkgs-682eac0d2222909f5b8914e5d66d145d1d67783d.tar.xz nixpkgs-682eac0d2222909f5b8914e5d66d145d1d67783d.tar.zst nixpkgs-682eac0d2222909f5b8914e5d66d145d1d67783d.zip |
hepmc3: adjust format
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 c3171c589ee..ddf196d835e 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"}" |