depot/third_party/nixpkgs/pkgs/by-name/gi/gitg/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

100 lines
1.7 KiB
Nix

{ lib
, stdenv
, fetchurl
, vala
, pkg-config
, gtk3
, glib
, gpgme
, json-glib
, wrapGAppsHook3
, libpeas
, bash
, gobject-introspection
, gtksourceview4
, gsettings-desktop-schemas
, gnome
, gspell
, gvfs
, shared-mime-info
, libgee
, libgit2-glib
, libhandy
, libsecret
, libxml2
, meson
, ninja
, python3
, libdazzle
}:
stdenv.mkDerivation rec {
pname = "gitg";
version = "44";
src = fetchurl {
url = "mirror://gnome/sources/gitg/${lib.versions.majorMinor version}/gitg-${version}.tar.xz";
hash = "sha256-NCoxaE2rlnHNNBvT485mWtzuBGDCoIHdxJPNvAMTJTA=";
};
nativeBuildInputs = [
gobject-introspection
meson
ninja
pkg-config
python3
vala
wrapGAppsHook3
];
buildInputs = [
glib
gpgme
gsettings-desktop-schemas
gtk3
gtksourceview4
gspell
gvfs
json-glib
libdazzle
libgee
libgit2-glib
libhandy
libpeas
libsecret
libxml2
];
doCheck = true;
postPatch = ''
patchShebangs meson_post_install.py
substituteInPlace tests/libgitg/test-commit.vala --replace-fail "/bin/bash" "${bash}/bin/bash"
'';
preFixup = ''
gappsWrapperArgs+=(
# Thumbnailers
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
)
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "gitg";
};
};
strictDeps = true;
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/gitg";
changelog = "https://gitlab.gnome.org/GNOME/gitg/-/blob/v${version}/NEWS?ref_type=tags";
description = "GNOME GUI client to view git repositories";
mainProgram = "gitg";
maintainers = with maintainers; [ domenkozar Luflosi ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}