diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index f0152970898e..9d361ac16168 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -1870,6 +1870,10 @@ let ]; }); + trajeR = old.trajeR.overrideAttrs (attrs: { + patches = [ ./patches/trajeR.patch ]; + }); + arcpbf = old.arcpbf.overrideAttrs (attrs: { postPatch = "patchShebangs configure"; }); diff --git a/pkgs/development/r-modules/patches/trajeR.patch b/pkgs/development/r-modules/patches/trajeR.patch new file mode 100644 index 000000000000..2424090567a9 --- /dev/null +++ b/pkgs/development/r-modules/patches/trajeR.patch @@ -0,0 +1,13 @@ +diff --git a/src/Makevars b/src/Makevars +index d147226..a79380e 100755 +--- a/src/Makevars ++++ b/src/Makevars +@@ -19,7 +19,7 @@ PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) + + # strip debug symbols for smaller Linux binaries + strippedLib: $(SHLIB) +- if test -e "/usr/bin/strip" & test -e "/bin/uname" & [[ `uname` == "Linux" ]] ; \ ++ @if [[ -e "/usr/bin/strip" && -e "/bin/uname" && $(shell uname) == "Linux" ]] ; \ + then /usr/bin/strip --strip-debug $(SHLIB); fi + .phony: strippedLib +