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.

73 lines
1.2 KiB
Nix
Raw Normal View History

2021-10-01 06:39:34 +02:00
{ stdenv
, lib
, fetchurl
2021-01-17 03:21:50 +01:00
, pkg-config
, meson
, ninja
, python3
, gnome
, desktop-file-utils
, appstream-glib
, gettext
, itstool
, libxml2
, gtk3
, glib
, atk
, wrapGAppsHook
}:
2017-07-11 10:03:28 +02:00
stdenv.mkDerivation rec {
pname = "ghex";
2021-12-06 06:02:22 +01:00
version = "3.41.1";
outputs = [ "out" "dev" ];
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=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
itstool
meson
ninja
2021-01-17 03:21:50 +01:00
pkg-config
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 = {
updateScript = gnome.updateScript {
2019-02-13 22:47:50 +01:00
packageName = "ghex";
attrPath = "gnome.${pname}";
2019-02-13 22:47:50 +01:00
};
};
2017-07-11 10:03:28 +02:00
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Ghex";
2017-07-11 10:03:28 +02:00
description = "Hex editor for GNOME desktop environment";
platforms = platforms.unix;
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
2017-07-11 10:03:28 +02:00
};
}