2019-07-19 04:13:15 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, pkgconfig
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, gnome3
|
|
|
|
, desktop-file-utils
|
|
|
|
, appstream-glib
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, atk
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2017-07-11 09:03:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-19 04:13:15 +01:00
|
|
|
pname = "ghex";
|
|
|
|
version = "3.18.4";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-07-19 04:13:15 +01:00
|
|
|
url = "mirror://gnome/sources/ghex/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-07-19 04:13:15 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
atk
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fixes for darwin. Drop in next release.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/ghex/commit/b0af26666cd990d99076c242b2abb3efc6e98671.patch";
|
|
|
|
sha256 = "1zwdkgr2nqrn9q3ydyvrrpn5x55cdi747fhbq6mh6blp9cbrk9b5";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/ghex/commit/cc8ef9e67b23604c402460010dc0b5dccb85391b.patch";
|
|
|
|
sha256 = "0j2165rfhlbrlzhmcnirqd5m89ljpz0n3nz20sxbwlc8h42zv36s";
|
|
|
|
})
|
|
|
|
];
|
2017-07-11 09:03:28 +01:00
|
|
|
|
2019-07-19 04:13:15 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
2019-02-13 21:47:50 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "ghex";
|
2019-07-19 04:13:15 +01:00
|
|
|
attrPath = "gnome3.${pname}";
|
2019-02-13 21:47:50 +00:00
|
|
|
};
|
|
|
|
};
|
2017-07-11 09:03:28 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Ghex;
|
|
|
|
description = "Hex editor for GNOME desktop environment";
|
2019-07-19 04:13:15 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2Plus;
|
2017-07-11 09:03:28 +01:00
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|