mactop: 0.1.9 -> 0.2.3 (#370511)
[NixPkgs.git] / pkgs / by-name / qu / quick-lookup / package.nix
blob0a463db059b08dabe361b7e77ad2bc1f375d272b
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.2";
21   src = fetchFromGitHub {
22     owner = "johnfactotum";
23     repo = "quick-lookup";
24     tag = finalAttrs.version;
25     hash = "sha256-KENHYdhB1OHIB1RKyv78QFdsq3fYRqKgBDCFPLxHZ+k=";
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   };