2019-04-06 22:09:43 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
2019-04-06 22:14:23 +01:00
|
|
|
, vala_0_42
|
2019-04-06 22:09:43 +01:00
|
|
|
, intltool
|
|
|
|
, pkgconfig
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, json-glib
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libpeas
|
|
|
|
, bash
|
|
|
|
, gobject-introspection
|
|
|
|
, libsoup
|
|
|
|
, gtksourceview
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, gnome3
|
|
|
|
, gtkspell3
|
|
|
|
, shared-mime-info
|
|
|
|
, libgee
|
|
|
|
, libgit2-glib
|
|
|
|
, libsecret
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-04-06 22:09:43 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-22 19:58:36 +00:00
|
|
|
pname = "gitg";
|
2018-10-17 09:57:55 +01:00
|
|
|
version = "3.30.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-06 22:09:43 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-10-17 09:57:55 +01:00
|
|
|
sha256 = "1fz8q1aiql6k740savdjh0vzbyhcflgf94cfdhvzcrrvm929n2ss";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-12-14 15:30:46 +00:00
|
|
|
patches = [
|
2019-04-06 22:09:43 +01:00
|
|
|
# Fix build with latest libgit2-glib
|
2018-12-14 15:30:46 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = https://gitlab.gnome.org/GNOME/gitg/commit/42bceea265f53fe7fd4a41037b936deed975fc6c.patch;
|
|
|
|
sha256 = "1xq245rsi1bi66lswk33pdiazfaagxf77836ds5q73900rx4r7fw";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-10-17 09:57:55 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
sed -i '/gtk-update-icon-cache/s/^/#/' meson_post_install.py
|
|
|
|
|
|
|
|
substituteInPlace tests/libgitg/test-commit.vala --replace "/bin/bash" "${bash}/bin/bash"
|
2016-09-18 20:35:23 +01:00
|
|
|
'';
|
2018-10-17 09:57:55 +01:00
|
|
|
|
2019-03-28 00:17:46 +00:00
|
|
|
doCheck = false; # FAIL: tests-gitg gtk_style_context_add_provider_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:58:36 +00:00
|
|
|
enableParallelBuilding = true;
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:58:36 +00:00
|
|
|
buildInputs = [
|
2019-04-06 22:09:43 +01:00
|
|
|
adwaita-icon-theme
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk3
|
|
|
|
gtksourceview
|
|
|
|
gtkspell3
|
|
|
|
json-glib
|
|
|
|
libgee
|
|
|
|
libgit2-glib
|
|
|
|
libpeas
|
|
|
|
libsecret
|
|
|
|
libsoup
|
2018-03-22 19:58:36 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-04-06 22:09:43 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
intltool
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
python3
|
2019-04-06 22:14:23 +01:00
|
|
|
vala_0_42 # fails build with 0.44, drop in >3.30.1
|
2019-04-06 22:09:43 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:58:36 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Thumbnailers
|
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-22 19:58:36 +00:00
|
|
|
homepage = https://wiki.gnome.org/Apps/Gitg;
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "GNOME GUI client to view git repositories";
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|