Files
nixpkgs/pkgs/by-name/wo/wordbook/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

66 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
meson,
ninja,
pkg-config,
libadwaita,
espeak-ng,
gobject-introspection,
wrapGAppsHook4,
appstream-glib,
desktop-file-utils,
}:
python3.pkgs.buildPythonApplication rec {
pname = "wordbook";
version = "0.4.0";
pyproject = false; # Built with meson
src = fetchFromGitHub {
owner = "fushinari";
repo = "Wordbook";
tag = version;
hash = "sha256-oiAXSDJJtlV6EIHzi+jFv+Ym1XHCMLx9DN1YRiXZNzc=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
appstream-glib
desktop-file-utils
gobject-introspection
];
buildInputs = [
libadwaita
];
dependencies = with python3.pkgs; [
pygobject3
wn
];
# prevent double wrapping
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
--prefix PATH ":" "${lib.makeBinPath [ espeak-ng ]}"
"''${gappsWrapperArgs[@]}"
)
'';
meta = {
description = "Offline English-English dictionary application built for GNOME";
mainProgram = "wordbook";
homepage = "https://github.com/fushinari/Wordbook";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ zendo ];
};
}