From cd736119562f8a0382dbbd60ec3de5556a0ebf76 Mon Sep 17 00:00:00 2001 From: aleksana Date: Tue, 9 May 2023 21:31:00 +0800 Subject: [PATCH] swayosd: init at unstable-2023-05-09 --- .../applications/window-managers/sway/osd.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/applications/window-managers/sway/osd.nix diff --git a/pkgs/applications/window-managers/sway/osd.nix b/pkgs/applications/window-managers/sway/osd.nix new file mode 100644 index 000000000000..6e4c57c4954f --- /dev/null +++ b/pkgs/applications/window-managers/sway/osd.nix @@ -0,0 +1,38 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, gtk3 +, gtk-layer-shell +, libpulseaudio +}: + +rustPlatform.buildRustPackage { + pname = "swayosd"; + version = "unstable-2023-05-09"; + + src = fetchFromGitHub { + owner = "ErikReider"; + repo = "SwayOSD"; + rev = "5c2176ae6a01a18fdc2b0f5d5f593737b5765914"; + hash = "sha256-rh42J6LWgNPOWYLaIwocU1JtQnA5P1jocN3ywVOfYoc="; + }; + + cargoHash = "sha256-ZcgrUcRQTcEYhw2mpJDuYDz3I/u/2Q+O60ajXYRMeow="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + gtk3 + gtk-layer-shell + libpulseaudio + ]; + + meta = with lib; { + description = "A GTK based on screen display for keyboard shortcuts"; + homepage = "https://github.com/ErikReider/SwayOSD"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ aleksana ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 013f7bda2c86..6845c07a0dc7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31098,6 +31098,7 @@ with pkgs; swaybg = callPackage ../applications/window-managers/sway/bg.nix { }; swayidle = callPackage ../applications/window-managers/sway/idle.nix { }; swaylock = callPackage ../applications/window-managers/sway/lock.nix { }; + swayosd = callPackage ../applications/window-managers/sway/osd.nix { }; swayws = callPackage ../applications/window-managers/sway/ws.nix { }; swaywsr = callPackage ../applications/window-managers/sway/wsr.nix { }; sway-contrib = recurseIntoAttrs (callPackages ../applications/window-managers/sway/contrib.nix { });