nixpkgs/pkgs/desktops/gnome/misc/gitg/default.nix
Luflosi f1901cf020 gitg: 41 -> 44
https://download.gnome.org/sources/gitg/44/gitg-44.news

Also:
- Add myself as a maintainer
- Enable `strictDeps`
- Run the tests again since they now work
- Use `--replace-fail` instead of `--replace` for `substituteInPlace`
2024-04-16 13:44:12 +00:00

100 lines
1.6 KiB
Nix

{ lib
, stdenv
, fetchurl
, vala
, pkg-config
, gtk3
, glib
, gpgme
, json-glib
, wrapGAppsHook
, 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/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
hash = "sha256-NCoxaE2rlnHNNBvT485mWtzuBGDCoIHdxJPNvAMTJTA=";
};
nativeBuildInputs = [
gobject-introspection
meson
ninja
pkg-config
python3
vala
wrapGAppsHook
];
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 = pname;
};
};
strictDeps = true;
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Gitg";
description = "GNOME GUI client to view git repositories";
mainProgram = "gitg";
maintainers = with maintainers; [ domenkozar Luflosi ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}