diff --git a/pkgs/by-name/sp/spedread/package.nix b/pkgs/by-name/sp/spedread/package.nix new file mode 100644 index 000000000000..050a2461e252 --- /dev/null +++ b/pkgs/by-name/sp/spedread/package.nix @@ -0,0 +1,67 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + ninja, + pkg-config, + vala, + glib, + gtk4, + libadwaita, + wrapGAppsHook4, + appstream-glib, + desktop-file-utils, + nix-update-script, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "spedread"; + version = "2.4.7-fixed"; + + src = fetchFromGitHub { + owner = "Darazaki"; + repo = "Spedread"; + tag = "v${finalAttrs.version}"; + hash = "sha256-wbSayADL2J+GEJWreiyTWtgXjdXC1bloRq1iHRS0VFc="; + }; + + postPatch = '' + substituteInPlace meson.build \ + --replace-fail "meson.add_install_script('build-aux/meson/postinstall.py')" "" + ''; + + nativeBuildInputs = [ + meson + ninja + vala + pkg-config + wrapGAppsHook4 + appstream-glib + desktop-file-utils + ]; + + buildInputs = [ + glib + gtk4 + libadwaita + ]; + + postInstall = '' + gtk4-update-icon-cache -qtf "$out/share/icons/hicolor" + update-desktop-database -q "$out/share/applications" + glib-compile-schemas "$out/share/glib-2.0/schemas" + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Rapid word display tool for improved reading focus and reduced eye movement"; + homepage = "https://github.com/Darazaki/Spedread"; + changelog = "https://github.com/Darazaki/Spedread/releases/tag/${finalAttrs.version}"; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ thtrf ]; + platforms = lib.platforms.linux; + mainProgram = "spedread"; + }; +})