From 61dee0330f46127f8f8a63c21d640703a7a76eea Mon Sep 17 00:00:00 2001 From: Savchenko Dmitriy Date: Wed, 30 Apr 2025 15:54:33 +0300 Subject: [PATCH] sherlock-launcher: init at 0.1.10 Sherlock is a GTK4 launcher for Wayland written in Rust; Upstream homepage: https://github.com/Skxxtz/sherlock --- pkgs/by-name/sh/sherlock-launcher/package.nix | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/by-name/sh/sherlock-launcher/package.nix diff --git a/pkgs/by-name/sh/sherlock-launcher/package.nix b/pkgs/by-name/sh/sherlock-launcher/package.nix new file mode 100644 index 000000000000..c1202c021fcd --- /dev/null +++ b/pkgs/by-name/sh/sherlock-launcher/package.nix @@ -0,0 +1,50 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + pkg-config, + gtk4, + gtk4-layer-shell, + dbus, + glib, + wayland, + openssl, + sqlite, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "sherlock-launcher"; + version = "0.1.10"; + + src = fetchFromGitHub { + owner = "Skxxtz"; + repo = "sherlock"; + tag = "v${finalAttrs.version}"; + hash = "sha256-PCgnGRujbeQ2ckXYGAU38+WxGTpIayPVOL3ivnPYFwQ="; + }; + + nativeBuildInputs = [ + pkg-config + glib + ]; + + buildInputs = [ + gtk4 + gtk4-layer-shell + dbus + openssl + sqlite + glib + wayland + ]; + + cargoHash = "sha256-053x0ChpE5MCYKzW/nJ29LzGnMgut2RLgb5KkTF17Vc="; + + meta = { + description = "Lightweight and efficient application launcher for Wayland built with Rust and GTK4"; + homepage = "https://github.com/Skxxtz/sherlock"; + license = lib.licenses.cc-by-nc-40; + mainProgram = "sherlock"; + maintainers = with lib.maintainers; [ agvantibo ]; + }; +})