spedread: init at 2.4.7-fixed (#409720)
This commit is contained in:
@@ -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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user