summaryrefslogtreecommitdiffstats
path: root/pkgs/glpaper/default.nix
blob: 3041911ee6ef07682d63ca6993e713f131b17c77 (plain)
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
44
45
46
47
48
{ stdenv, fetchhg
, pkgconfig
, wlroots, wayland, wayland-protocols
, pixman, libxkbcommon
, libudev, mesa_noglu, libX11
, libGLU_combined
}:

let
  metadata = import ./metadata.nix;
in
stdenv.mkDerivation rec {
  name = "glpaper-${version}";
  version = metadata.rev;

  src = fetchhg {
    url = "https://bitbucket.org/Scoopta/glpaper";
    rev = version;
    sha256 = metadata.sha256;
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [
    wlroots wayland wayland-protocols wlroots
    pixman libxkbcommon libudev mesa_noglu libX11
    libGLU_combined
  ];

  buildPhase = ''
    cd Release
    make
  '';

  installPhase = ''
    mkdir -p $out/bin
    cp glpaper $out/bin/glpaper
  '';

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "GLPaper is a wallpaper program for wlroots based wayland compositors such as sway that allows you to render glsl shaders as your wallpaper";
    homepage    = "https://bitbucket.org/Scoopta/glpaper";
    license     = licenses.none;
    platforms   = platforms.linux;
    maintainers = with maintainers; [ colemickens ];
  };
}