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

98 lines
1.7 KiB
Nix
Raw Normal View History

2019-04-06 22:09:43 +01:00
{ stdenv
, fetchurl
, fetchpatch
, vala
, gettext
2019-04-06 22:09:43 +01: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
, libdazzle
2019-04-06 22:09:43 +01:00
}:
2019-04-06 22:09:43 +01:00
stdenv.mkDerivation rec {
2018-03-22 19:58:36 +00:00
pname = "gitg";
2019-09-05 22:07:07 +01:00
version = "3.32.1";
src = fetchurl {
2019-04-06 22:09:43 +01:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-09-05 22:07:07 +01:00
sha256 = "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914";
};
2018-10-17 09:57:55 +01: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 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 = [
2019-04-06 22:09:43 +01:00
adwaita-icon-theme
glib
gsettings-desktop-schemas
gtk3
gtksourceview
gtkspell3
json-glib
libdazzle
2019-04-06 22:09:43 +01:00
libgee
libgit2-glib
libpeas
libsecret
libsoup
2018-03-22 19:58:36 +00:00
];
2019-04-06 22:09:43 +01:00
nativeBuildInputs = [
gobject-introspection
gettext
2019-04-06 22:09:43 +01:00
meson
ninja
pkgconfig
python3
vala
2019-04-06 22:09:43 +01: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; {
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;
};
}