4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
74 lines
1.2 KiB
Nix
74 lines
1.2 KiB
Nix
{ lib, stdenv
|
|
, gettext
|
|
, fetchurl
|
|
, python3
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gtk3
|
|
, glib
|
|
, gjs
|
|
, webkitgtk
|
|
, gobject-introspection
|
|
, wrapGAppsHook
|
|
, itstool
|
|
, libxml2
|
|
, docbook-xsl-nons
|
|
, docbook_xml_dtd_42
|
|
, gnome3
|
|
, gdk-pixbuf
|
|
, libxslt
|
|
, gsettings-desktop-schemas
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "glade";
|
|
version = "3.38.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/glade/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "1dxsiz9ahqkxg2a1dw9sbd8jg59y5pdz4c1gvnbmql48gmj8gz4q";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gettext
|
|
itstool
|
|
wrapGAppsHook
|
|
docbook-xsl-nons
|
|
docbook_xml_dtd_42
|
|
libxslt
|
|
libxml2
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
glib
|
|
gjs
|
|
webkitgtk
|
|
libxml2
|
|
python3
|
|
python3.pkgs.pygobject3
|
|
gsettings-desktop-schemas
|
|
gdk-pixbuf
|
|
gnome3.adwaita-icon-theme
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://wiki.gnome.org/Apps/Glade";
|
|
description = "User interface designer for GTK applications";
|
|
maintainers = teams.gnome.members;
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|