nixpkgs/pkgs/desktops/gnome-3/misc/gitg/default.nix

108 lines
2.0 KiB
Nix
Raw Normal View History

2019-04-06 21:09:43 +00:00
{ stdenv
, fetchurl
, fetchpatch
, vala
, gettext
2019-04-06 21:09:43 +00:00
, 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
, hicolor-icon-theme
, libdazzle
2019-04-06 21:09:43 +00:00
}:
2019-04-06 21:09:43 +00:00
stdenv.mkDerivation rec {
2018-03-22 19:58:36 +00:00
pname = "gitg";
version = "3.32.0";
src = fetchurl {
2019-04-06 21:09:43 +00:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1wzsv7bh0a2w70f938hkpzbb9xkyrp3bil65c0q3yf2v72nbbn81";
};
patches = [
# https://gitlab.gnome.org/GNOME/gitg/issues/213
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gitg/merge_requests/83.patch";
sha256 = "1f7wx1d3k5pnp8zbrqssip57b9jxn3hc7a83psm7fny970qmd18z";
})
];
2018-10-17 08:57:55 +00:00
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
substituteInPlace tests/libgitg/test-commit.vala --replace "/bin/bash" "${bash}/bin/bash"
'';
2018-10-17 08:57:55 +00:00
doCheck = true;
2018-03-22 19:58:36 +00:00
enableParallelBuilding = true;
2018-03-22 19:58:36 +00:00
buildInputs = [
2019-04-06 21:09:43 +00:00
adwaita-icon-theme
glib
gsettings-desktop-schemas
gtk3
gtksourceview
gtkspell3
json-glib
libdazzle
2019-04-06 21:09:43 +00:00
libgee
libgit2-glib
libpeas
libsecret
libsoup
2018-03-22 19:58:36 +00:00
];
2019-04-06 21:09:43 +00:00
nativeBuildInputs = [
gobject-introspection
hicolor-icon-theme
gettext
2019-04-06 21:09:43 +00:00
meson
ninja
pkgconfig
python3
vala
2019-04-06 21:09:43 +00:00
wrapGAppsHook
];
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;
};
};
meta = with stdenv.lib; {
2018-03-22 19:58:36 +00:00
homepage = https://wiki.gnome.org/Apps/Gitg;
description = "GNOME GUI client to view git repositories";
maintainers = with maintainers; [ domenkozar ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}