Skip to content

Commit

Permalink
fastnlo-toolkit: nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Nov 28, 2024
1 parent a4dd838 commit 17399d3
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions pkgs/by-name/fa/fastnlo-toolkit/package.nix
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 17399d3

Please sign in to comment.