diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-01-28 22:37:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 22:37:06 +0100 |
commit | 41891c627a6bf492fc312efef4d1f119662ba98a (patch) | |
tree | 37ef8fd3e5ec02a15bb3fb552bb00e307893c265 /pkgs | |
parent | 18d5f603d2361ac9e711b3212013969331bc8846 (diff) | |
parent | b87f47a25c1cb3ed75da88837a6267ce4e2ba4d0 (diff) |
Merge pull request #256173 from max-amb/ianny
ianny: init at 1.0.0beta.1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/ia/ianny/package.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/ia/ianny/package.nix b/pkgs/by-name/ia/ianny/package.nix new file mode 100644 index 0000000000000..6b7c3ca940e54 --- /dev/null +++ b/pkgs/by-name/ia/ianny/package.nix @@ -0,0 +1,43 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, dbus +, pkg-config +}: + +rustPlatform.buildRustPackage rec { + pname = "ianny"; + version = "1.0.0beta.1"; + + src = fetchFromGitHub { + owner = "zefr0x"; + repo = "ianny"; + rev = "v${version}"; + hash = "sha256-Bnr+wtusvTM690IISBs0wKj0ChBoIrMHyVZ8wdGgK08="; + }; + + cargoHash = "sha256-/8C+hDq/z+h1uxO9prLbKHgyfMGrMODAs5/yUrutaAM="; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ dbus.dev ]; + + postPatch = '' + substituteInPlace src/main.rs \ + --replace-fail '/usr/share/locale' $out/share/locale + ''; + + preFixup = '' + mkdir -p $out/etc/xdg/autostart + mkdir -p $out/usr/share/local + cp io.github.zefr0x.ianny.desktop $out/etc/xdg/autostart/ + ''; + + meta = with lib; { + description = "Desktop utility that helps preventing repetitive strain injuries by keeping track of usage patterns and periodically informing the user to take breaks."; + homepage = "https://github.com/zefr0x/ianny"; + license = licenses.gpl3; + mainProgram = "ianny"; + maintainers = with maintainers; [ max-amb ]; + platforms = platforms.linux; + }; +} |