From 17399d3824abc5b64e9a3af22784a8cf55cba507 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Thu, 28 Nov 2024 17:32:17 +0800 Subject: [PATCH] fastnlo-toolkit: nixfmt --- pkgs/by-name/fa/fastnlo-toolkit/package.nix | 32 ++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/fa/fastnlo-toolkit/package.nix b/pkgs/by-name/fa/fastnlo-toolkit/package.nix index 820afcbd8f68..65cdc94622c6 100644 --- a/pkgs/by-name/fa/fastnlo-toolkit/package.nix +++ b/pkgs/by-name/fa/fastnlo-toolkit/package.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, fetchurl -, boost -, gfortran -, lhapdf -, ncurses -, perl -, python ? null -, swig -, yoda -, zlib -, withPython ? false +{ + lib, + stdenv, + fetchurl, + boost, + gfortran, + lhapdf, + ncurses, + perl, + python ? null, + swig, + yoda, + zlib, + withPython ? false, }: stdenv.mkDerivation rec { @@ -33,8 +34,7 @@ stdenv.mkDerivation rec { gfortran.cc.lib lhapdf yoda - ] ++ lib.optional withPython python - ++ lib.optional (withPython && python.isPy3k) ncurses; + ] ++ lib.optional withPython python ++ lib.optional (withPython && python.isPy3k) ncurses; propagatedBuildInputs = [ zlib @@ -67,7 +67,7 @@ stdenv.mkDerivation rec { # None of our currently packaged versions of swig are C++17-friendly # Use a workaround from https://github.com/swig/swig/issues/1538 - env.CXXFLAGS="-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES"; + env.CXXFLAGS = "-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES"; meta = with lib; { homepage = "http://fastnlo.hepforge.org";