mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
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
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, wrapGAppsHook, gsettings-desktop-schemas, gspell, gtksourceview4, libgee
|
|
, tepl, amtk, gnome3, glib, pkgconfig, intltool, itstool, libxml2 }:
|
|
let
|
|
version = "3.38.0";
|
|
pname = "gnome-latex";
|
|
in stdenv.mkDerivation {
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "0xqd49pgi82dygqnxj08i1v22b0vwwhx3zvdinhrx4jny339yam8";
|
|
};
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
configureFlags = ["--disable-dconf-migration"];
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig
|
|
wrapGAppsHook
|
|
itstool
|
|
intltool
|
|
];
|
|
|
|
buildInputs = [
|
|
amtk
|
|
gnome3.adwaita-icon-theme
|
|
glib
|
|
gsettings-desktop-schemas
|
|
gspell
|
|
gtksourceview4
|
|
libgee
|
|
libxml2
|
|
tepl
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru.updateScript = gnome3.updateScript { packageName = pname; };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://wiki.gnome.org/Apps/GNOME-LaTeX";
|
|
description = "A LaTeX editor for the GNOME desktop";
|
|
maintainers = [ maintainers.manveru ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|