Files
nixpkgs/pkgs/by-name/gh/ghex/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

87 lines
1.6 KiB
Nix

{
stdenv,
lib,
fetchurl,
pkg-config,
gi-docgen,
meson,
ninja,
gnome,
desktop-file-utils,
gettext,
itstool,
gtk4,
libadwaita,
glib,
atk,
gobject-introspection,
vala,
wrapGAppsHook4,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ghex";
version = "48.0";
outputs = [
"out"
"dev"
"devdoc"
];
src = fetchurl {
url = "mirror://gnome/sources/ghex/${lib.versions.major finalAttrs.version}/ghex-${finalAttrs.version}.tar.xz";
hash = "sha256-qh0KtfdDBKqjGYehgtQh1j8ZzgJGXXxkJpbjFhI+MKg=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
itstool
meson
ninja
pkg-config
gi-docgen
gobject-introspection
vala
wrapGAppsHook4
];
buildInputs = [
gtk4
libadwaita
atk
glib
];
mesonFlags = [
"-Dgtk_doc=true"
"-Dvapi=true"
]
++ lib.optionals stdenv.hostPlatform.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"
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "ghex";
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/ghex";
changelog = "https://gitlab.gnome.org/GNOME/ghex/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
description = "Hex editor for GNOME desktop environment";
mainProgram = "ghex";
platforms = platforms.linux;
license = licenses.gpl2Plus;
teams = [ teams.gnome ];
};
})