iio-niri: 1.3.0 -> 2.0.0 (#509329)

This commit is contained in:
Sandro
2026-05-06 22:24:38 +00:00
committed by GitHub
2 changed files with 15 additions and 5 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ in
extraArgs = mkOption {
type = types.listOf types.str;
default = [ ];
description = "Extra arguments to pass to IIO-Niri.";
description = "Extra arguments to pass to `iio-niri listen`.";
};
};
@@ -49,7 +49,7 @@ in
after = [ cfg.niriUnit ];
serviceConfig = {
Type = "simple";
ExecStart = "${getExe cfg.package} ${escapeShellArgs cfg.extraArgs}";
ExecStart = "${getExe cfg.package} listen ${escapeShellArgs cfg.extraArgs}";
Restart = "on-failure";
};
};
+13 -3
View File
@@ -1,31 +1,41 @@
{
rustPlatform,
stdenv,
lib,
fetchFromGitHub,
dbus,
pkg-config,
installShellFiles,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "iio-niri";
version = "1.3.0";
version = "2.0.0";
src = fetchFromGitHub {
owner = "Zhaith-Izaliel";
repo = "iio-niri";
tag = "v${finalAttrs.version}";
hash = "sha256-tbCiG/u350U7UbYDV5gWczDQd//RosNHuzB/cP9Dyyo=";
hash = "sha256-foE+bPJANKWmPSt3s8BOqEIXGZoFNWRJT731xf5sr1M=";
};
cargoHash = "sha256-JnjBnqZXRhxUClvC2hIW898AwwEOS/ELrsrjY2dV3Is=";
cargoHash = "sha256-y3Sv3JWg252XbuIqEioNagaQ99Vr9x1OfrFC6Jl4kSY=";
nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [
dbus
];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd iio-niri \
--bash <($out/bin/iio-niri completions bash) \
--zsh <($out/bin/iio-niri completions zsh) \
--fish <($out/bin/iio-niri completions fish)
'';
meta = {
description = "Listen to iio-sensor-proxy and updates Niri output orientation depending on the accelerometer orientation";
homepage = "https://github.com/Zhaith-Izaliel/iio-niri";