8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
16 hash = "sha256-1QkGs4qCzEA4K3H39QcRV+yINIeZRkjBBkASO69F7ik=";
19 cargoHash = "sha256-gKCmiqHkCB7nP5XIaFi/8Wi/x5WFEHEmHczKiIDDxXE=";
21 nativeBuildInputs = [ pkg-config ];
22 buildInputs = [ dbus.dev ];
25 substituteInPlace src/main.rs \
26 --replace-fail '/usr/share/locale' $out/share/locale
30 mkdir -p $out/etc/xdg/autostart
31 mkdir -p $out/usr/share/local
32 cp io.github.zefr0x.ianny.desktop $out/etc/xdg/autostart/
36 description = "Desktop utility that helps preventing repetitive strain injuries by keeping track of usage patterns and periodically informing the user to take breaks";
37 homepage = "https://github.com/zefr0x/ianny";
38 license = licenses.gpl3;
39 mainProgram = "ianny";
40 maintainers = with maintainers; [ max-amb ];
41 platforms = platforms.linux;