forked from mirrors/nixpkgs
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
52 lines
1.8 KiB
Nix
52 lines
1.8 KiB
Nix
{ lib, stdenv, fetchurl, pkgconfig, libxml2, gnome3, dconf, nautilus
|
|
, gtk3, gsettings-desktop-schemas, vte, gettext, which, libuuid, vala
|
|
, desktop-file-utils, itstool, wrapGAppsHook, glib, pcre2
|
|
, libxslt, docbook-xsl-nons }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-terminal";
|
|
version = "3.38.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-terminal/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "1lgkvla0fadg76j898p2x2fipqf8kkqbbmmsfkfpz11q9y1d966r";
|
|
};
|
|
|
|
buildInputs = [
|
|
gtk3 gsettings-desktop-schemas vte libuuid dconf
|
|
# For extension
|
|
nautilus
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig gettext itstool which libxml2 libxslt docbook-xsl-nons
|
|
vala desktop-file-utils wrapGAppsHook pcre2
|
|
];
|
|
|
|
# Silly ./configure, it looks for dbus file from gnome-shell in the
|
|
# installation tree of the package it is configuring.
|
|
postPatch = ''
|
|
substituteInPlace configure --replace '$(eval echo $(eval echo $(eval echo ''${dbusinterfacedir})))/org.gnome.ShellSearchProvider2.xml' "${gnome3.gnome-shell}/share/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml"
|
|
substituteInPlace src/Makefile.in --replace '$(dbusinterfacedir)/org.gnome.ShellSearchProvider2.xml' "${gnome3.gnome-shell}/share/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml"
|
|
'';
|
|
|
|
configureFlags = [ "--disable-migration" ]; # TODO: remove this with 3.30
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = "gnome-terminal";
|
|
attrPath = "gnome3.gnome-terminal";
|
|
};
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "The GNOME Terminal Emulator";
|
|
homepage = "https://wiki.gnome.org/Apps/Terminal";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3Plus;
|
|
maintainers = teams.gnome.members;
|
|
};
|
|
}
|