From 8b9bc5beff4ab191a48e27778bbff59922abe14d Mon Sep 17 00:00:00 2001 From: Felix Nilles Date: Thu, 30 May 2024 17:18:21 +0200 Subject: [PATCH] wlinhibit: init --- pkgs/by-name/wl/wlinhibit/package.nix | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/wl/wlinhibit/package.nix diff --git a/pkgs/by-name/wl/wlinhibit/package.nix b/pkgs/by-name/wl/wlinhibit/package.nix new file mode 100644 index 000000000000..b134786a5f38 --- /dev/null +++ b/pkgs/by-name/wl/wlinhibit/package.nix @@ -0,0 +1,42 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + ninja, + pkg-config, + wayland, + wayland-protocols, +}: +stdenv.mkDerivation rec { + pname = "wlinhibit"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "0x5a4"; + repo = "wlinhibit"; + rev = "v0.1.1"; + hash = "sha256-YQHJ9sLHSV8GJP7IpRzmtDbeB86y/a48mLcYy4iDciw="; + }; + + + buildInputs = [ + wayland + wayland-protocols + ]; + + strictDeps = true; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + meta = { + description = "simple, stupid idle inhibitor for wayland"; + license = lib.licenses.mit; + homepage = "https://github.com/0x5a4/wlinhibit"; + platforms = lib.platforms.linux; + }; +}