nixpkgs/pkgs/desktops/gnome/core/dconf-editor/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

81 lines
1.6 KiB
Nix
Raw Normal View History

2021-03-25 13:37:33 +00:00
{ lib
, stdenv
, fetchurl
, fetchpatch
, desktop-file-utils
2021-03-25 13:37:33 +00:00
, meson
, ninja
, vala
, libxslt
, pkg-config
, glib
, gtk3
, libhandy
, gnome
2021-03-25 13:37:33 +00:00
, dconf
, libxml2
, gettext
, docbook-xsl-nons
, wrapGAppsHook
, gobject-introspection
}:
stdenv.mkDerivation rec {
2018-03-13 19:10:44 +00:00
pname = "dconf-editor";
version = "45.0.1";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "sha256-EYApdnju2uYhfMUUomOMGH0vHR7ycgy5B5t0DEKZQd0=";
};
patches = [
# Fix crash with GSETTINGS_SCHEMA_DIR env var.
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/dconf-editor/-/commit/baf183737d459dcde065c9f8f6fe5be7ed874de6.patch";
hash = "sha256-Vp0qjJChDr6IarUD+tZPLJhdI8v8r6EzWNfqFSnGvqQ=";
})
# Look for compiled schemas in NIX_GSETTINGS_OVERRIDES_DIR
# environment variable, to match what we patched GLib to do.
./schema-override-variable.patch
];
nativeBuildInputs = [
desktop-file-utils
2021-03-25 13:37:33 +00:00
meson
ninja
vala
libxslt
pkg-config
wrapGAppsHook
gettext
docbook-xsl-nons
libxml2
gobject-introspection
];
2018-03-13 19:10:44 +00:00
2021-03-25 13:37:33 +00:00
buildInputs = [
glib
gtk3
libhandy
2021-03-25 13:37:33 +00:00
dconf
];
2018-03-13 19:10:44 +00:00
passthru = {
updateScript = gnome.updateScript {
2019-09-08 23:38:31 +00:00
packageName = pname;
attrPath = "gnome.${pname}";
2018-03-13 19:10:44 +00:00
};
};
meta = with lib; {
2021-03-25 13:37:33 +00:00
description = "GSettings editor for GNOME";
mainProgram = "dconf-editor";
2021-03-25 13:37:33 +00:00
homepage = "https://wiki.gnome.org/Apps/DconfEditor";
license = licenses.gpl3Plus;
maintainers = teams.gnome.members;
2022-12-18 21:48:59 +00:00
platforms = platforms.unix;
};
}