2017-11-09 22:46:18 +00:00
|
|
|
{ stdenv, fetchurl, vala, intltool, pkgconfig, gtk3, glib
|
2018-02-25 02:23:58 +00:00
|
|
|
, json-glib, wrapGAppsHook, libpeas, bash, gobjectIntrospection
|
2018-07-21 01:44:44 +01:00
|
|
|
, gnome3, gtkspell3, shared-mime-info, libgee, libgit2-glib, libsecret
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:58:36 +00:00
|
|
|
let
|
|
|
|
pname = "gitg";
|
2018-02-25 20:07:20 +00:00
|
|
|
version = "3.26.0";
|
2018-03-22 19:58:36 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-02-25 20:07:20 +00:00
|
|
|
sha256 = "26730d437d6a30d6e341b9e8da99d2134dce4b96022c195609f45062f82b54d5";
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
preCheck = ''
|
|
|
|
substituteInPlace tests/libgitg/test-commit.c --replace "/bin/bash" "${bash}/bin/bash"
|
|
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
|
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
|
|
|
makeFlags = "INTROSPECTION_GIRDIR=$(out)/share/gir-1.0/ INTROSPECTION_TYPELIBDIR=$(out)/lib/girepository-1.0";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:58:36 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3 glib json-glib libgee libpeas gnome3.libsoup
|
|
|
|
libgit2-glib gtkspell3 gnome3.gtksourceview gnome3.gsettings-desktop-schemas
|
|
|
|
libsecret gobjectIntrospection gnome3.adwaita-icon-theme
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-11-09 22:46:18 +00:00
|
|
|
nativeBuildInputs = [ vala wrapGAppsHook intltool pkgconfig ];
|
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;
|
|
|
|
};
|
|
|
|
}
|