2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, vala
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3
|
|
|
|
, glib
|
2024-04-21 15:54:59 +00:00
|
|
|
, gpgme
|
2020-04-24 23:36:52 +00:00
|
|
|
, json-glib
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
, libpeas
|
|
|
|
, bash
|
|
|
|
, gobject-introspection
|
2022-02-10 20:34:41 +00:00
|
|
|
, gtksourceview4
|
2020-04-24 23:36:52 +00:00
|
|
|
, gsettings-desktop-schemas
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2022-02-10 20:34:41 +00:00
|
|
|
, gspell
|
2024-04-21 15:54:59 +00:00
|
|
|
, gvfs
|
2020-04-24 23:36:52 +00:00
|
|
|
, shared-mime-info
|
|
|
|
, libgee
|
|
|
|
, libgit2-glib
|
2024-04-21 15:54:59 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsecret
|
2022-10-21 18:38:19 +00:00
|
|
|
, libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, libdazzle
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gitg";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "44";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-NCoxaE2rlnHNNBvT485mWtzuBGDCoIHdxJPNvAMTJTA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
vala
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
2024-04-21 15:54:59 +00:00
|
|
|
gpgme
|
2020-04-24 23:36:52 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk3
|
2022-02-10 20:34:41 +00:00
|
|
|
gtksourceview4
|
|
|
|
gspell
|
2024-04-21 15:54:59 +00:00
|
|
|
gvfs
|
2020-04-24 23:36:52 +00:00
|
|
|
json-glib
|
|
|
|
libdazzle
|
|
|
|
libgee
|
|
|
|
libgit2-glib
|
2024-04-21 15:54:59 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
libpeas
|
|
|
|
libsecret
|
2022-10-21 18:38:19 +00:00
|
|
|
libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
doCheck = true;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
substituteInPlace tests/libgitg/test-commit.vala --replace-fail "/bin/bash" "${bash}/bin/bash"
|
2021-05-20 23:08:51 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Thumbnailers
|
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gitg";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "GNOME GUI client to view git repositories";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gitg";
|
|
|
|
maintainers = with maintainers; [ domenkozar Luflosi ];
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|