brewery
notashelf /
a82b986ac6bbb4c02515ebdb4a5c87dd49ba68d4

chroma

public

Lightweight wallpaper daemon for Wayland

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/chroma.git
nix/package.nixNix65 lines1.1 KB
1
{
2
  lib,
3
  stdenv,
4
  wayland,
5
  wayland-protocols,
6
  wayland-scanner,
7
  libxkbcommon,
8
  libGL,
9
  mesa,
10
  glibc,
11
  pkg-config,
12
}: let
13
  fs = lib.fileset;
14
  s = ../.;
15
in
16
  stdenv.mkDerivation {
17
    pname = "chroma";
18
    version = "1.0.0";
19
20
    src = fs.toSource {
21
      root = s;
22
      fileset = fs.unions [
23
        (s + /include)
24
        (s + /protocols)
25
        (s + /src)
26
27
        (s + /Makefile)
28
      ];
29
    };
30
31
    buildInputs = [
32
      # Wayland libraries
33
      wayland.dev
34
      wayland-protocols
35
      wayland-scanner
36
      libxkbcommon
37
38
      # EGL/OpenGL libraries
39
      libGL
40
      mesa
41
42
      # System libraries
43
      glibc.dev
44
    ];
45
46
    nativeBuildInputs = [
47
      pkg-config
48
    ];
49
50
    makeFlags = [
51
      "PREFIX=$(out)"
52
      "SYSTEMD_DIR=$(out)/lib/systemd/system"
53
    ];
54
55
    postInstall = ''
56
      install -Dm755 ${../chroma.conf.sample} $out/share/chroma.conf.sample
57
    '';
58
59
    meta = {
60
      description = "Super-fast, lightweight and efficient wallpaper daemon for Wayland compositors";
61
      license = lib.licenses.mpl20;
62
      mainProgram = "chroma";
63
      maintainers = with lib.maitainers; [NotAShelf];
64
    };
65
  }