mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
87 lines
1.5 KiB
Nix
87 lines
1.5 KiB
Nix
{ stdenv
|
|
, lib
|
|
, gettext
|
|
, fetchurl
|
|
, python3
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gtk3
|
|
, glib
|
|
, gjs
|
|
, enableWebkit2gtk ? stdenv.hostPlatform.isLinux
|
|
, webkitgtk_4_1
|
|
, gobject-introspection
|
|
, wrapGAppsHook3
|
|
, itstool
|
|
, libxml2
|
|
, docbook-xsl-nons
|
|
, docbook_xml_dtd_42
|
|
, gnome
|
|
, adwaita-icon-theme
|
|
, gdk-pixbuf
|
|
, libxslt
|
|
, gsettings-desktop-schemas
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "glade";
|
|
version = "3.40.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/glade/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "McmtrqhJlyq5UXtWThmsGZd8qXdYsQntwxZwCPU+PZw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gettext
|
|
itstool
|
|
wrapGAppsHook3
|
|
docbook-xsl-nons
|
|
docbook_xml_dtd_42
|
|
libxslt
|
|
libxml2
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
glib
|
|
gjs
|
|
libxml2
|
|
python3
|
|
python3.pkgs.pygobject3
|
|
gsettings-desktop-schemas
|
|
gdk-pixbuf
|
|
adwaita-icon-theme
|
|
] ++ lib.optionals enableWebkit2gtk [
|
|
webkitgtk_4_1
|
|
];
|
|
|
|
mesonFlags = [
|
|
(lib.mesonEnable "webkit2gtk" enableWebkit2gtk)
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace meson.build \
|
|
--replace 'webkit2gtk-4.0' 'webkit2gtk-4.1'
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gitlab.gnome.org/GNOME/glade";
|
|
description = "User interface designer for GTK applications";
|
|
maintainers = teams.gnome.members;
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|