mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
76 lines
1.3 KiB
Nix
76 lines
1.3 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, autoreconfHook
|
|
, gtk-doc
|
|
, vala
|
|
, gobject-introspection
|
|
, wrapGAppsHook
|
|
, gsettings-desktop-schemas
|
|
, gspell
|
|
, gtksourceview4
|
|
, libgee
|
|
, tepl
|
|
, amtk
|
|
, gnome
|
|
, glib
|
|
, pkg-config
|
|
, gettext
|
|
, itstool
|
|
, libxml2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "3.44.0";
|
|
pname = "gnome-latex";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "iL1TQL0ox+0Bx5ZqOgBzK72QJ3PfWsZZvmrRGAap50Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
autoreconfHook
|
|
gtk-doc
|
|
vala
|
|
gobject-introspection
|
|
wrapGAppsHook
|
|
itstool
|
|
gettext
|
|
];
|
|
|
|
buildInputs = [
|
|
amtk
|
|
gnome.adwaita-icon-theme
|
|
glib
|
|
gsettings-desktop-schemas
|
|
gspell
|
|
gtksourceview4
|
|
libgee
|
|
libxml2
|
|
tepl
|
|
];
|
|
|
|
configureFlags = [
|
|
"--disable-dconf-migration"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
|
|
passthru.updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "odd-unstable";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|