Skip to content

Commit

Permalink
rss-glx: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
azahi committed Jun 5, 2022
1 parent 2d01216 commit 8b501a1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
12 changes: 12 additions & 0 deletions pkgs/misc/screensavers/rss-glx/cstddef.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git i/src/Implicit/impSurface.h w/src/Implicit/impSurface.h
index 41fab81..027587f 100644
--- i/src/Implicit/impSurface.h
+++ w/src/Implicit/impSurface.h
@@ -25,6 +25,7 @@
#ifdef WIN32
#include <windows.h>
#endif
+#include <cstddef>
#include <vector>
#include <GL/gl.h>

20 changes: 18 additions & 2 deletions pkgs/misc/screensavers/rss-glx/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{lib, stdenv, fetchurl, pkg-config, xlibsWrapper, libXext, libGLU, libGL, imagemagick6, libtiff, bzip2}:
{ lib
, stdenv
, fetchurl
, autoconf
, pkg-config
, xlibsWrapper
, libXext
, libGLU
, libGL
, imagemagick6
, libtiff
, bzip2
}:

stdenv.mkDerivation rec {
version = "0.9.1";
Expand All @@ -9,9 +21,13 @@ stdenv.mkDerivation rec {
sha256 = "1aikafjqrfmv23jnrrm5d56dg6injh4l67zjdxzdapv9chw7g3cg";
};

nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ autoconf pkg-config ];
buildInputs = [ libGLU libGL xlibsWrapper imagemagick6 libtiff bzip2 ];

patches = [
./cstddef.patch
];

NIX_CFLAGS_COMPILE = "-I${imagemagick6.dev}/include/ImageMagick";
NIX_LDFLAGS= "-rpath ${libXext}/lib";

Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34562,7 +34562,7 @@ with pkgs;
stdenv = gccStdenv;
};

rss-glx = callPackage ../misc/screensavers/rss-glx { stdenv = gcc10StdenvCompat; };
rss-glx = callPackage ../misc/screensavers/rss-glx { };

run-scaled = callPackage ../tools/X11/run-scaled { };

Expand Down

0 comments on commit 8b501a1

Please sign in to comment.