From d8b017f3d876691fc8c4b951ad6cfe85bcd5cd3f Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 15 Nov 2021 19:01:20 -0500 Subject: [PATCH] rivet: add a patch fix build --- pkgs/development/libraries/physics/rivet/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/physics/rivet/default.nix b/pkgs/development/libraries/physics/rivet/default.nix index b041dd483e1b..9739530f8ba3 100644 --- a/pkgs/development/libraries/physics/rivet/default.nix +++ b/pkgs/development/libraries/physics/rivet/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fastjet, fastjet-contrib, ghostscript, hepmc, imagemagick, less, python3, rsync, texlive, yoda, which, makeWrapper }: +{ lib, stdenv, fetchurl, fetchpatch, fastjet, fastjet-contrib, ghostscript, hepmc, imagemagick, less, python3, rsync, texlive, yoda, which, makeWrapper }: stdenv.mkDerivation rec { pname = "rivet"; @@ -9,6 +9,15 @@ stdenv.mkDerivation rec { hash = "sha256-YhcXW3gab7z3EJd3qGePeplVEapV4a5WKIc151hQXZo="; }; + patches = [ + # Fixes build + (fetchpatch { + name = "rivet-3.1.5-namespace-fix.patch"; + url = "https://gitlab.com/hepcedar/rivet/-/commit/17a99b38b52e65a4a3fd6289124bd9dd874c30bf.diff"; + sha256 = "sha256-OknqghpMMB5nRHeeRc2ddxybhnkVGRB1x8jfOjrkyms="; + }) + ]; + latex = texlive.combine { inherit (texlive) scheme-basic collection-pstricks