about summary refs log tree commit diff
path: root/pkgs/misc/screensavers/rss-glx/default.nix
blob: a90b5d65653e0a17230a326960d35f757d124485 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, stdenv
, fetchurl
, autoconf
, pkg-config
, xlibsWrapper
, libXext
, libGLU
, libGL
, imagemagick6
, libtiff
, bzip2
}:

stdenv.mkDerivation rec {
  version = "0.9.1";
  pname = "rss-glx";

  src = fetchurl {
    url = "mirror://sourceforge/rss-glx/rss-glx_${version}.tar.bz2";
    sha256 = "1aikafjqrfmv23jnrrm5d56dg6injh4l67zjdxzdapv9chw7g3cg";
  };

  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";

  meta = {
    description = "Really Slick Screensavers Port to GLX";
    longDescription = ''
      This package currently contains all of the screensavers from the
      original collection, plus a few others.
    '';
    license = lib.licenses.gpl2;
    platforms = lib.platforms.linux;
  };
}