From b523a839fd5c6891c9aa38fecc58dead1ddc66bb Mon Sep 17 00:00:00 2001 From: Yusuf Date: Wed, 20 Mar 2024 23:31:43 +0100 Subject: [PATCH] iio-hyprland: init at 0-unstable-2024-07-24 --- pkgs/by-name/ii/iio-hyprland/package.nix | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/ii/iio-hyprland/package.nix diff --git a/pkgs/by-name/ii/iio-hyprland/package.nix b/pkgs/by-name/ii/iio-hyprland/package.nix new file mode 100644 index 000000000000..ac04d12a5778 --- /dev/null +++ b/pkgs/by-name/ii/iio-hyprland/package.nix @@ -0,0 +1,42 @@ +{ + lib, + stdenv, + fetchFromGitHub, + unstableGitUpdater, + meson, + cmake, + pkg-config, + dbus, + ninja, +}: + +stdenv.mkDerivation { + pname = "iio-hyprland"; + version = "0-unstable-2024-07-24"; + + src = fetchFromGitHub { + owner = "JeanSchoeller"; + repo = "iio-hyprland"; + rev = "bbf59e10cbf293e64b765864a324e971fcc06125"; + hash = "sha256-9tB29tP3ZQ2tU2c+FrWrGqSm70ZrJP8H9WZKzHx55zI="; + }; + + buildInputs = [ dbus ]; + nativeBuildInputs = [ + meson + cmake + pkg-config + ninja + ]; + + passthru.updateScript = unstableGitUpdater { }; + + meta = { + description = "Listens to iio-sensor-proxy and automatically changes Hyprland output orientation"; + homepage = "https://github.com/JeanSchoeller/iio-hyprland/tree/master"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ yusuf-duran ]; + platforms = lib.platforms.linux; + mainProgram = "iio-hyprland"; + }; +}