Skip to content

Commit

Permalink
Merge pull request #303210 from Kupac/fix_FLAMES
Browse files Browse the repository at this point in the history
rPackages.FLAMES: fix build
  • Loading branch information
superherointj authored Apr 12, 2024
2 parents 5093b19 + 8628dda commit 90d0d40
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/development/r-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ let
rGEDI = with pkgs; [ libgeotiff.dev libaec zlib.dev hdf5.dev ];
rawrr = [ pkgs.mono ];
HDF5Array = [ pkgs.zlib.dev ];
FLAMES = [ pkgs.zlib.dev ];
FLAMES = with pkgs; [ zlib.dev bzip2.dev xz.dev ];
ncdfFlow = [ pkgs.zlib.dev ];
proj4 = [ pkgs.proj.dev ];
rtmpt = [ pkgs.gsl ];
Expand Down Expand Up @@ -1215,6 +1215,10 @@ let
patches = [ ./patches/spMC.patch ];
});

FLAMES = old.FLAMES.overrideAttrs (attrs: {
patches = [ ./patches/FLAMES.patch ];
});

openssl = old.openssl.overrideAttrs (attrs: {
preConfigure = ''
patchShebangs configure
Expand Down
17 changes: 17 additions & 0 deletions pkgs/development/r-modules/patches/FLAMES.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/src/Makevars b/src/Makevars
index 4f3fa42ce752..e48e45561292 100755
--- a/src/Makevars
+++ b/src/Makevars
@@ -24,12 +24,6 @@ FILES = $(CFILES) $(CPPFILES)
SOURCES = $(FILES)
OBJECTS = $(CPPFILES:.cpp=.o) $(CFILES:.c=.o)

-strippedLib: $(SHLIB)
- if test -e "/usr/bin/strip" & test -e "/bin/uname" & [[ `uname` == "Linux" ]] ; then /usr/bin/strip --strip-debug $(SHLIB); fi
-clean:
- rm $(OBJECTS)
-.phony: strippedLib clean
-
RHTSLIB_LIBS=$(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript" -e \
'Rhtslib::pkgconfig("PKG_LIBS")')
RHTSLIB_CPPFLAGS=$(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript" -e \

0 comments on commit 90d0d40

Please sign in to comment.