Files
nixpkgs/pkgs/by-name/wi/wike/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

81 lines
1.4 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
meson,
ninja,
pkg-config,
pkgsCross,
appstream-glib,
desktop-file-utils,
gobject-introspection,
wrapGAppsHook4,
glib,
gtk4,
librsvg,
libadwaita,
glib-networking,
webkitgtk_6_0,
nix-update-script,
}:
python3.pkgs.buildPythonApplication rec {
pname = "wike";
version = "3.1.1";
format = "other";
src = fetchFromGitHub {
owner = "hugolabe";
repo = "Wike";
rev = version;
hash = "sha256-Unw+r8NlfaSn/UCtdnkCCsC6xM33Qy6hQdUg/4bIG+I=";
};
nativeBuildInputs = [
meson
pkg-config
ninja
appstream-glib
desktop-file-utils
gobject-introspection
wrapGAppsHook4
];
buildInputs = [
glib
gtk4
librsvg
libadwaita
glib-networking
webkitgtk_6_0
];
propagatedBuildInputs = with python3.pkgs; [
requests
pygobject3
];
# prevent double wrapping
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
patchShebangs --update $out/share/wike/wike-sp
'';
passthru = {
tests.cross = pkgsCross.aarch64-multiplatform.wike;
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Wikipedia Reader for the GNOME Desktop";
homepage = "https://github.com/hugolabe/Wike";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ samalws ];
teams = [ teams.gnome-circle ];
mainProgram = "wike";
};
}