gitg: clean up

This commit is contained in:
Jan Tojnar 2018-03-22 20:58:36 +01:00
parent efd53598f8
commit 359f5b0ff7
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -3,37 +3,49 @@
, gnome3, gtkspell3, shared-mime-info, libgee, libgit2-glib, librsvg, libsecret , gnome3, gtkspell3, shared-mime-info, libgee, libgit2-glib, librsvg, libsecret
, libsoup }: , libsoup }:
stdenv.mkDerivation rec { let
name = "gitg-${version}"; pname = "gitg";
version = "3.26.0"; version = "3.26.0";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/gitg/${gnome3.versionBranch version}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "26730d437d6a30d6e341b9e8da99d2134dce4b96022c195609f45062f82b54d5"; sha256 = "26730d437d6a30d6e341b9e8da99d2134dce4b96022c195609f45062f82b54d5";
}; };
passthru = {
updateScript = gnome3.updateScript { packageName = "gitg"; };
};
preCheck = '' preCheck = ''
substituteInPlace tests/libgitg/test-commit.c --replace "/bin/bash" "${bash}/bin/bash" substituteInPlace tests/libgitg/test-commit.c --replace "/bin/bash" "${bash}/bin/bash"
''; '';
doCheck = true; doCheck = true;
enableParallelBuilding = true;
makeFlags = "INTROSPECTION_GIRDIR=$(out)/share/gir-1.0/ INTROSPECTION_TYPELIBDIR=$(out)/lib/girepository-1.0"; makeFlags = "INTROSPECTION_GIRDIR=$(out)/share/gir-1.0/ INTROSPECTION_TYPELIBDIR=$(out)/lib/girepository-1.0";
propagatedUserEnvPkgs = [ shared-mime-info buildInputs = [
gnome3.gnome-themes-standard ]; gtk3 glib json-glib libgee libpeas gnome3.libsoup
libgit2-glib gtkspell3 gnome3.gtksourceview gnome3.gsettings-desktop-schemas
buildInputs = [ gtk3 glib json-glib libgee libpeas gnome3.libsoup libsecret gobjectIntrospection gnome3.adwaita-icon-theme
libgit2-glib gtkspell3 gnome3.gtksourceview gnome3.gsettings-desktop-schemas ];
librsvg libsecret gobjectIntrospection gnome3.adwaita-icon-theme ];
nativeBuildInputs = [ vala wrapGAppsHook intltool pkgconfig ]; nativeBuildInputs = [ vala wrapGAppsHook intltool pkgconfig ];
preFixup = ''
gappsWrapperArgs+=(
# Thumbnailers
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
)
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/action/show/Apps/Gitg; homepage = https://wiki.gnome.org/Apps/Gitg;
description = "GNOME GUI client to view git repositories"; description = "GNOME GUI client to view git repositories";
maintainers = with maintainers; [ domenkozar ]; maintainers = with maintainers; [ domenkozar ];
license = licenses.gpl2; license = licenses.gpl2;