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

59 lines
1.6 KiB
Nix
Raw Normal View History

2017-11-09 22:46:18 +00:00
{ stdenv, fetchurl, vala, intltool, pkgconfig, gtk3, glib
, json-glib, wrapGAppsHook, libpeas, bash, gobjectIntrospection
, gnome3, gtkspell3, shared-mime-info, libgee, libgit2-glib, libsecret
2018-10-17 09:57:55 +01:00
, meson, ninja, python3
}:
2018-03-22 19:58:36 +00:00
let
pname = "gitg";
2018-10-17 09:57:55 +01:00
version = "3.30.1";
2018-03-22 19:58:36 +00:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2018-10-17 09:57:55 +01:00
sha256 = "1fz8q1aiql6k740savdjh0vzbyhcflgf94cfdhvzcrrvm929n2ss";
};
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"
'';
2018-10-17 09:57:55 +01:00
doCheck = true;
2018-03-22 19:58:36 +00:00
enableParallelBuilding = true;
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
];
2018-10-17 09:57:55 +01:00
nativeBuildInputs = [ meson ninja python3 vala wrapGAppsHook intltool pkgconfig ];
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;
};
}