nixpkgs/pkgs/by-name/gi/gitg/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

100 lines
1.6 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2019-04-06 21:09:43 +00:00
, fetchurl
, vala
2021-01-17 02:21:50 +00:00
, pkg-config
2019-04-06 21:09:43 +00:00
, gtk3
, glib
, gpgme
2019-04-06 21:09:43 +00:00
, json-glib
, wrapGAppsHook3
2019-04-06 21:09:43 +00:00
, libpeas
, bash
, gobject-introspection
, gtksourceview4
2019-04-06 21:09:43 +00:00
, gsettings-desktop-schemas
, gnome
, gspell
, gvfs
2019-04-06 21:09:43 +00:00
, shared-mime-info
, libgee
, libgit2-glib
, libhandy
2019-04-06 21:09:43 +00:00
, libsecret
, libxml2
2019-04-06 21:09:43 +00:00
, meson
, ninja
, python3
, libdazzle
2019-04-06 21:09:43 +00:00
}:
2019-04-06 21:09:43 +00:00
stdenv.mkDerivation rec {
2018-03-22 19:58:36 +00:00
pname = "gitg";
version = "44";
src = fetchurl {
2021-01-15 13:21:58 +00:00
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
wrapGAppsHook3
];
2018-03-22 19:58:36 +00:00
buildInputs = [
2019-04-06 21:09:43 +00:00
glib
gpgme
2019-04-06 21:09:43 +00:00
gsettings-desktop-schemas
gtk3
gtksourceview4
gspell
gvfs
2019-04-06 21:09:43 +00:00
json-glib
libdazzle
2019-04-06 21:09:43 +00:00
libgee
libgit2-glib
libhandy
2019-04-06 21:09:43 +00:00
libpeas
libsecret
libxml2
2018-03-22 19:58:36 +00:00
];
doCheck = true;
postPatch = ''
patchShebangs meson_post_install.py
substituteInPlace tests/libgitg/test-commit.vala --replace-fail "/bin/bash" "${bash}/bin/bash"
'';
2018-03-22 19:58:36 +00:00
preFixup = ''
gappsWrapperArgs+=(
# Thumbnailers
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
)
'';
passthru = {
updateScript = gnome.updateScript {
2018-03-22 19:58:36 +00:00
packageName = pname;
};
};
strictDeps = true;
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/gitg";
description = "GNOME GUI client to view git repositories";
mainProgram = "gitg";
maintainers = with maintainers; [ domenkozar Luflosi ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}