nixpkgs/pkgs/desktops/gnome/apps/ghex/default.nix

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

82 lines
1.4 KiB
Nix
Raw Normal View History

2021-10-01 04:39:34 +00:00
{ stdenv
, lib
, fetchurl
2021-01-17 02:21:50 +00:00
, pkg-config
, gi-docgen
, meson
, ninja
, gnome
, desktop-file-utils
, appstream-glib
, gettext
, itstool
, libxml2
, gtk4
, glib
, atk
, gobject-introspection
, wrapGAppsHook4
}:
2017-07-11 08:03:28 +00:00
stdenv.mkDerivation rec {
pname = "ghex";
2022-04-17 03:07:01 +00:00
version = "42.1";
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
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=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
itstool
meson
ninja
2021-01-17 02:21:50 +00:00
pkg-config
gi-docgen
gobject-introspection
wrapGAppsHook4
];
buildInputs = [
gtk4
atk
glib
];
checkInputs = [
appstream-glib
desktop-file-utils
];
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"
];
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
2019-02-13 21:47:50 +00:00
passthru = {
updateScript = gnome.updateScript {
2019-02-13 21:47:50 +00:00
packageName = "ghex";
attrPath = "gnome.${pname}";
2019-02-13 21:47:50 +00:00
};
};
2017-07-11 08:03:28 +00:00
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Ghex";
2017-07-11 08:03:28 +00:00
description = "Hex editor for GNOME desktop environment";
platforms = platforms.unix;
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
2017-07-11 08:03:28 +00:00
};
}