mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 22:07:50 +00:00
Merge pull request #296607 from Yusuf-Duran/add-iio-hyprland
iio-hyprland: init at 0-unstable-2024-07-24; nixos/iio-hyprland: init module
This commit is contained in:
commit
3f08237ceb
@ -22786,6 +22786,11 @@
|
||||
name = "Yusuf Bera Ertan";
|
||||
keys = [ { fingerprint = "9270 66BD 8125 A45B 4AC4 0326 6180 7181 F60E FCB2"; } ];
|
||||
};
|
||||
yusuf-duran = {
|
||||
github = "yusuf-duran";
|
||||
githubId = 37774475;
|
||||
name = "Yusuf Duran";
|
||||
};
|
||||
yuu = {
|
||||
email = "yuunix@grrlz.net";
|
||||
matrix = "@yuu:matrix.org";
|
||||
|
@ -214,6 +214,7 @@
|
||||
./programs/iay.nix
|
||||
./programs/iftop.nix
|
||||
./programs/i3lock.nix
|
||||
./programs/iio-hyprland.nix
|
||||
./programs/immersed-vr.nix
|
||||
./programs/iotop.nix
|
||||
./programs/java.nix
|
||||
|
24
nixos/modules/programs/iio-hyprland.nix
Normal file
24
nixos/modules/programs/iio-hyprland.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.programs.iio-hyprland;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
programs.iio-hyprland = {
|
||||
enable = lib.mkEnableOption "iio-hyprland and iio-sensor-proxy";
|
||||
package = lib.mkPackageOption pkgs "iio-hyprland" { };
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware.sensor.iio.enable = lib.mkDefault true;
|
||||
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
meta.maintainers = with lib.maintainers; [ yusuf-duran ];
|
||||
}
|
42
pkgs/by-name/ii/iio-hyprland/package.nix
Normal file
42
pkgs/by-name/ii/iio-hyprland/package.nix
Normal file
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user