File tree Expand file tree Collapse file tree 4 files changed +72
-0
lines changed
pkgs/by-name/ii/iio-hyprland Expand file tree Collapse file tree 4 files changed +72
-0
lines changed Original file line number Diff line number Diff line change 2278622786 name = "Yusuf Bera Ertan";
2278722787 keys = [ { fingerprint = "9270 66BD 8125 A45B 4AC4 0326 6180 7181 F60E FCB2"; } ];
2278822788 };
22789+ yusuf-duran = {
22790+ github = "yusuf-duran";
22791+ githubId = 37774475;
22792+ name = "Yusuf Duran";
22793+ };
2278922794 yuu = {
2279022795 email = "yuunix@grrlz.net";
2279122796 matrix = "@yuu:matrix.org";
Original file line number Diff line number Diff line change 214214 ./programs/iay.nix
215215 ./programs/iftop.nix
216216 ./programs/i3lock.nix
217+ ./programs/iio-hyprland.nix
217218 ./programs/immersed-vr.nix
218219 ./programs/iotop.nix
219220 ./programs/java.nix
Original file line number Diff line number Diff line change 1+ {
2+ config ,
3+ lib ,
4+ pkgs ,
5+ ...
6+ } :
7+ let
8+ cfg = config . programs . iio-hyprland ;
9+ in
10+ {
11+ options = {
12+ programs . iio-hyprland = {
13+ enable = lib . mkEnableOption "iio-hyprland and iio-sensor-proxy" ;
14+ package = lib . mkPackageOption pkgs "iio-hyprland" { } ;
15+ } ;
16+ } ;
17+
18+ config = lib . mkIf cfg . enable {
19+ hardware . sensor . iio . enable = lib . mkDefault true ;
20+
21+ environment . systemPackages = [ cfg . package ] ;
22+ } ;
23+ meta . maintainers = with lib . maintainers ; [ yusuf-duran ] ;
24+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ unstableGitUpdater ,
6+ meson ,
7+ cmake ,
8+ pkg-config ,
9+ dbus ,
10+ ninja ,
11+ } :
12+
13+ stdenv . mkDerivation {
14+ pname = "iio-hyprland" ;
15+ version = "0-unstable-2024-07-24" ;
16+
17+ src = fetchFromGitHub {
18+ owner = "JeanSchoeller" ;
19+ repo = "iio-hyprland" ;
20+ rev = "bbf59e10cbf293e64b765864a324e971fcc06125" ;
21+ hash = "sha256-9tB29tP3ZQ2tU2c+FrWrGqSm70ZrJP8H9WZKzHx55zI=" ;
22+ } ;
23+
24+ buildInputs = [ dbus ] ;
25+ nativeBuildInputs = [
26+ meson
27+ cmake
28+ pkg-config
29+ ninja
30+ ] ;
31+
32+ passthru . updateScript = unstableGitUpdater { } ;
33+
34+ meta = {
35+ description = "Listens to iio-sensor-proxy and automatically changes Hyprland output orientation" ;
36+ homepage = "https://github.com/JeanSchoeller/iio-hyprland/tree/master" ;
37+ license = lib . licenses . gpl3Only ;
38+ maintainers = with lib . maintainers ; [ yusuf-duran ] ;
39+ platforms = lib . platforms . linux ;
40+ mainProgram = "iio-hyprland" ;
41+ } ;
42+ }
You can’t perform that action at this time.
0 commit comments