2021-10-01 06:39:34 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-07-19 05:13:15 +02:00
|
|
|
, fetchurl
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2019-07-19 05:13:15 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2019-07-19 05:13:15 +02:00
|
|
|
, desktop-file-utils
|
|
|
|
, appstream-glib
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, atk
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2017-07-11 10:03:28 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-19 05:13:15 +02:00
|
|
|
pname = "ghex";
|
2021-12-06 06:02:22 +01:00
|
|
|
version = "3.41.1";
|
2019-07-19 05:13:15 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/ghex/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-12-06 06:02:22 +01:00
|
|
|
sha256 = "i3nPAJ6uXEfK0KtT4hmcOm+y86thh381m+1SR3DuYfc=";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2019-07-19 05:13:15 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2019-07-19 05:13:15 +02:00
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
atk
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
2019-02-13 22:47:50 +01:00
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2019-02-13 22:47:50 +01:00
|
|
|
packageName = "ghex";
|
2021-05-07 23:18:14 +02:00
|
|
|
attrPath = "gnome.${pname}";
|
2019-02-13 22:47:50 +01:00
|
|
|
};
|
|
|
|
};
|
2017-07-11 10:03:28 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Ghex";
|
2017-07-11 10:03:28 +02:00
|
|
|
description = "Hex editor for GNOME desktop environment";
|
2019-07-19 05:13:15 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2017-07-11 10:03:28 +02:00
|
|
|
};
|
|
|
|
}
|