mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
spedread: init at 2.4.7-fixed
This commit is contained in:
parent
3b4aeada8f
commit
6298c6279a
1 changed files with 67 additions and 0 deletions
67
pkgs/by-name/sp/spedread/package.nix
Normal file
67
pkgs/by-name/sp/spedread/package.nix
Normal file
|
@ -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";
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue