2021-10-01 04:39:34 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-07-19 03:13:15 +00:00
|
|
|
, fetchurl
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2022-02-17 02:39:30 +00:00
|
|
|
, gi-docgen
|
2019-07-19 03:13:15 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2019-07-19 03:13:15 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, appstream-glib
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
2022-02-17 02:39:30 +00:00
|
|
|
, gtk4
|
2019-07-19 03:13:15 +00:00
|
|
|
, glib
|
|
|
|
, atk
|
2022-02-17 02:39:30 +00:00
|
|
|
, gobject-introspection
|
2022-04-08 13:20:23 +00:00
|
|
|
, wrapGAppsHook4
|
2019-07-19 03:13:15 +00:00
|
|
|
}:
|
2017-07-11 08:03:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-19 03:13:15 +00:00
|
|
|
pname = "ghex";
|
2022-04-17 03:07:01 +00:00
|
|
|
version = "42.1";
|
2019-07-19 03:13:15 +00:00
|
|
|
|
2022-02-17 02:39:30 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-04-08 13:20:23 +00:00
|
|
|
url = "mirror://gnome/sources/ghex/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-04-17 03:07:01 +00:00
|
|
|
sha256 = "8QMj08MvvRqDFU+/0qJ+yj7pDZwbJSNfGxX+3l+xE6M=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-07-19 03:13:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2022-02-17 02:39:30 +00:00
|
|
|
gi-docgen
|
|
|
|
gobject-introspection
|
2022-04-08 13:20:23 +00:00
|
|
|
wrapGAppsHook4
|
2019-07-19 03:13:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-02-17 02:39:30 +00:00
|
|
|
gtk4
|
2019-07-19 03:13:15 +00:00
|
|
|
atk
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
2022-02-17 02:39:30 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
2022-04-08 14:27:12 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
# mremap does not exist on darwin
|
|
|
|
"-Dmmap-buffer-backend=false"
|
2022-02-17 02:39:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
2019-07-19 03:13:15 +00:00
|
|
|
'';
|
2019-02-13 21:47:50 +00:00
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2019-02-13 21:47:50 +00:00
|
|
|
packageName = "ghex";
|
2021-05-07 21:18:14 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2019-02-13 21:47:50 +00:00
|
|
|
};
|
|
|
|
};
|
2017-07-11 08:03:28 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Ghex";
|
2017-07-11 08:03:28 +00:00
|
|
|
description = "Hex editor for GNOME desktop environment";
|
2019-07-19 03:13:15 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2017-07-11 08:03:28 +00:00
|
|
|
};
|
|
|
|
}
|