nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 57 lines 1.1 kB view raw
1{ 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, 15}: 16 17stdenv.mkDerivation (finalAttrs: { 18 pname = "quick-lookup"; 19 version = "2.1.2"; 20 21 src = fetchFromGitHub { 22 owner = "johnfactotum"; 23 repo = "quick-lookup"; 24 tag = finalAttrs.version; 25 hash = "sha256-KENHYdhB1OHIB1RKyv78QFdsq3fYRqKgBDCFPLxHZ+k="; 26 }; 27 28 postPatch = '' 29 substituteInPlace post_install.py \ 30 --replace-fail 'gtk-update-icon-cache' 'gtk4-update-icon-cache' 31 ''; 32 33 nativeBuildInputs = [ 34 meson 35 ninja 36 pkg-config 37 gobject-introspection 38 wrapGAppsHook4 39 desktop-file-utils 40 ]; 41 42 buildInputs = [ 43 libadwaita 44 gjs 45 webkitgtk_6_0 46 glib-networking 47 ]; 48 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 }; 57})