biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / by-name / qu / quick-lookup / package.nix
blobffd8d48a2c51584986d84ce15b707c139fcb3d19
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   meson,
6   ninja,
7   pkg-config,
8   gobject-introspection,
9   wrapGAppsHook4,
10   desktop-file-utils,
11   libadwaita,
12   gjs,
13   webkitgtk_6_0,
14   glib-networking,
17 stdenv.mkDerivation (finalAttrs: {
18   pname = "quick-lookup";
19   version = "2.1.1";
21   src = fetchFromGitHub {
22     owner = "johnfactotum";
23     repo = "quick-lookup";
24     rev = "refs/tags/${finalAttrs.version}";
25     hash = "sha256-I6a8J/Z1yJhdqWES+1mIlvJq6FBOX0GiW0muNP/iSjE=";
26   };
28   postPatch = ''
29     substituteInPlace post_install.py \
30       --replace-fail 'gtk-update-icon-cache' 'gtk4-update-icon-cache'
31   '';
33   nativeBuildInputs = [
34     meson
35     ninja
36     pkg-config
37     gobject-introspection
38     wrapGAppsHook4
39     desktop-file-utils
40   ];
42   buildInputs = [
43     libadwaita
44     gjs
45     webkitgtk_6_0
46     glib-networking
47   ];
49   meta = {
50     description = "Simple GTK dictionary application powered by Wiktionary";
51     homepage = "https://github.com/johnfactotum/quick-lookup";
52     license = lib.licenses.gpl3Plus;
53     mainProgram = "quick-lookup";
54     maintainers = with lib.maintainers; [ aleksana ];
55     platforms = lib.platforms.linux;
56   };