From 8fc9a6b912ef68e19c4947f9d279d90d8d99791e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 30 Jan 2025 15:44:33 +0100 Subject: ... --- overlays/swayosd/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 overlays/swayosd/default.nix (limited to 'overlays/swayosd/default.nix') diff --git a/overlays/swayosd/default.nix b/overlays/swayosd/default.nix new file mode 100644 index 00000000..28c8f1b9 --- /dev/null +++ b/overlays/swayosd/default.nix @@ -0,0 +1,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 + ]; + }); +} -- cgit v1.2.3