mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
gnome3.gnome-software: fix build
This commit is contained in:
parent
e34d2ac4c7
commit
03e83a0893
2 changed files with 4 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, fetchurl, substituteAll, pkgconfig, meson, ninja, gettext, gnome3, wrapGAppsHook, packagekit, ostree
|
||||
, glib, appstream-glib, libsoup, polkit, isocodes, gtkspell3, libxslt
|
||||
, glib, appstream-glib, libsoup, polkit, isocodes, gspell, libxslt, gobjectIntrospection
|
||||
, json-glib, libsecret, valgrind-light, docbook_xsl, docbook_xml_dtd_42, gtk-doc, desktop-file-utils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -20,19 +20,16 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [
|
||||
meson ninja pkgconfig gettext wrapGAppsHook libxslt docbook_xml_dtd_42
|
||||
valgrind-light docbook_xsl gtk-doc desktop-file-utils
|
||||
valgrind-light docbook_xsl gtk-doc desktop-file-utils gobjectIntrospection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gnome3.gtk glib packagekit appstream-glib libsoup
|
||||
gnome3.gsettings-desktop-schemas gnome3.gnome-desktop
|
||||
gtkspell3 json-glib libsecret ostree
|
||||
gspell json-glib libsecret ostree
|
||||
polkit
|
||||
];
|
||||
|
||||
# https://gitlab.gnome.org/GNOME/gnome-software/issues/320
|
||||
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
||||
|
||||
mesonFlags = [
|
||||
"-Denable-flatpak=false"
|
||||
"-Denable-rpm=false"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
/* find filename */
|
||||
- filename = g_build_filename (DATADIR, "xml", "iso-codes", "iso_639.xml", NULL);
|
||||
+ filename = g_build_filename ("@isoCodes@", "share", "xml", "iso-codes", "iso_639.xml", NULL);
|
||||
+ filename = g_build_filename ("@isocodes@", "share", "xml", "iso-codes", "iso_639.xml", NULL);
|
||||
if (!g_file_test (filename, G_FILE_TEST_EXISTS)) {
|
||||
g_free (filename);
|
||||
filename = g_build_filename ("/usr", "share", "xml", "iso-codes", "iso_639.xml", NULL);
|
||||
|
|
Loading…
Reference in a new issue