Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
101 lines
2.1 KiB
Nix
101 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
glib,
|
|
gjs,
|
|
ninja,
|
|
gtk4,
|
|
gsettings-desktop-schemas,
|
|
wrapGAppsHook4,
|
|
desktop-file-utils,
|
|
gobject-introspection,
|
|
glib-networking,
|
|
pkg-config,
|
|
libadwaita,
|
|
appstream,
|
|
blueprint-compiler,
|
|
gettext,
|
|
libportal-gtk4,
|
|
languagetool,
|
|
libsoup_3,
|
|
openjdk,
|
|
xdg-desktop-portal,
|
|
dbus,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "eloquent";
|
|
version = "1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sonnyp";
|
|
repo = "Eloquent";
|
|
tag = "v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-I4AQZl1zoZPhOwDR1uYNJTMRq5vQHPvyimC8OUAe+vY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream
|
|
blueprint-compiler
|
|
desktop-file-utils
|
|
gjs
|
|
gobject-introspection
|
|
libportal-gtk4
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
dbus
|
|
gettext
|
|
gjs
|
|
glib
|
|
glib-networking
|
|
gsettings-desktop-schemas
|
|
gtk4
|
|
libadwaita
|
|
libportal-gtk4
|
|
libsoup_3
|
|
xdg-desktop-portal
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace troll/gjspack/bin/gjspack \
|
|
--replace-fail "/usr/bin/env -S gjs" "${gjs}/bin/gjs"
|
|
|
|
substituteInPlace src/languagetool.js \
|
|
--replace-fail "/app/LanguageTool/languagetool-server.jar" "${languagetool}/share/languagetool-server.jar" \
|
|
--replace-fail "--config" "" \
|
|
--replace-fail "/app/share/server.properties" ""
|
|
|
|
sed -i "1 a imports.package._findEffectiveEntryPointName = () => 're.sonny.Eloquent';" src/bin.js
|
|
patchShebangs .
|
|
'';
|
|
|
|
strictDeps = true;
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--set JAVA_HOME ${openjdk}
|
|
--prefix PATH : ${openjdk}/bin
|
|
)
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Proofreading software for English, Spanish, French, German, and more than 20 other languages";
|
|
homepage = "https://github.com/sonnyp/eloquent";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ thtrf ];
|
|
mainProgram = "re.sonny.Eloquent";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|