Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 86 lines 1.6 kB view raw
1{ stdenv 2, lib 3, gettext 4, fetchurl 5, python3 6, meson 7, ninja 8, pkg-config 9, gtk3 10, glib 11, gjs 12, enableWebkit2gtk ? stdenv.isLinux 13, webkitgtk_4_1 14, gobject-introspection 15, wrapGAppsHook3 16, itstool 17, libxml2 18, docbook-xsl-nons 19, docbook_xml_dtd_42 20, gnome 21, adwaita-icon-theme 22, gdk-pixbuf 23, libxslt 24, gsettings-desktop-schemas 25}: 26 27stdenv.mkDerivation rec { 28 pname = "glade"; 29 version = "3.40.0"; 30 31 src = fetchurl { 32 url = "mirror://gnome/sources/glade/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 33 sha256 = "McmtrqhJlyq5UXtWThmsGZd8qXdYsQntwxZwCPU+PZw="; 34 }; 35 36 nativeBuildInputs = [ 37 meson 38 ninja 39 pkg-config 40 gettext 41 itstool 42 wrapGAppsHook3 43 docbook-xsl-nons 44 docbook_xml_dtd_42 45 libxslt 46 libxml2 47 gobject-introspection 48 ]; 49 50 buildInputs = [ 51 gtk3 52 glib 53 gjs 54 libxml2 55 python3 56 python3.pkgs.pygobject3 57 gsettings-desktop-schemas 58 gdk-pixbuf 59 adwaita-icon-theme 60 ] ++ lib.optionals enableWebkit2gtk [ 61 webkitgtk_4_1 62 ]; 63 64 mesonFlags = [ 65 (lib.mesonEnable "webkit2gtk" enableWebkit2gtk) 66 ]; 67 68 postPatch = '' 69 substituteInPlace meson.build \ 70 --replace 'webkit2gtk-4.0' 'webkit2gtk-4.1' 71 ''; 72 73 passthru = { 74 updateScript = gnome.updateScript { 75 packageName = pname; 76 }; 77 }; 78 79 meta = with lib; { 80 homepage = "https://gitlab.gnome.org/GNOME/glade"; 81 description = "User interface designer for GTK applications"; 82 maintainers = teams.gnome.members; 83 license = licenses.lgpl2; 84 platforms = platforms.unix; 85 }; 86}