2021-10-14 00:43:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2022-03-30 09:31:56 +00:00
|
|
|
, gi-docgen
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, appstream-glib
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
2022-03-30 09:31:56 +00:00
|
|
|
, gtk4
|
2022-10-21 18:38:19 +00:00
|
|
|
, libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, atk
|
2022-03-30 09:31:56 +00:00
|
|
|
, gobject-introspection
|
2022-10-21 18:38:19 +00:00
|
|
|
, vala
|
2022-04-15 01:41:22 +00:00
|
|
|
, wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ghex";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "43.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-04-15 01:41:22 +00:00
|
|
|
url = "mirror://gnome/sources/ghex/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "hmwGIsZv21rSpHXpz8zLIZocZDHwCayyKR1D8hQLFH4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2022-03-30 09:31:56 +00:00
|
|
|
gi-docgen
|
|
|
|
gobject-introspection
|
2022-10-21 18:38:19 +00:00
|
|
|
vala
|
2022-04-15 01:41:22 +00:00
|
|
|
wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
gtk4
|
2022-10-21 18:38:19 +00:00
|
|
|
libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
atk
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
2022-10-21 18:38:19 +00:00
|
|
|
"-Dvapi=true"
|
2022-04-15 01:41:22 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
# mremap does not exist on darwin
|
|
|
|
"-Dmmap-buffer-backend=false"
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = "ghex";
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Ghex";
|
|
|
|
description = "Hex editor for GNOME desktop environment";
|
2022-12-02 08:20:57 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
}
|