summaryrefslogtreecommitdiff
path: root/overlays/swayosd/default.nix
blob: 28c8f1b9879b0f37ce2dfe2b4a48c364da37d7ea (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
{ final, prev, sources, ... }: {
  swayosd = prev.swayosd.overrideAttrs (oldAttrs: rec {
    inherit (sources.swayosd) version src;
    cargoDeps = prev.rustPlatform.fetchCargoTarball {
      inherit (oldAttrs) pname;
      inherit version src;
      hash = "sha256-Anrk8p76HKZcNavYdi9l1oYahduLrb7Lf7knQK7Hy5E=";
    };
    nativeBuildInputs = with final; [
      wrapGAppsHook4
      pkg-config
      meson
      rustc
      cargo
      ninja
      rustPlatform.cargoSetupHook
    ];
    buildInputs = with final; [
      gtk4-layer-shell
      libevdev
      libinput
      libpulseaudio
      udev
      sassc
    ];
    patches = (oldAttrs.patches or []) ++ [
      ./exponential.patch
    ];
  });
}