nixpkgs/pkgs/by-name/hi/hieroglyphic/package.nix

67 lines
1.3 KiB
Nix
Raw Normal View History

2024-05-02 21:43:28 +00:00
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
cargo,
rustc,
meson,
ninja,
pkg-config,
wrapGAppsHook4,
desktop-file-utils,
glib,
gtk4,
libadwaita,
2024-05-05 15:31:03 +00:00
gettext,
2024-05-23 18:21:24 +00:00
appstream,
2024-05-02 21:43:28 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hieroglyphic";
2024-05-23 18:21:24 +00:00
version = "1.1.0";
2024-05-02 21:43:28 +00:00
src = fetchFromGitHub {
owner = "FineFindus";
repo = "Hieroglyphic";
rev = "refs/tags/v${finalAttrs.version}";
2024-05-23 18:21:24 +00:00
hash = "sha256-8UUFatJwtxqumhHd0aiPk6nKsaaF/jIIqMFxXye0X8U=";
2024-05-02 21:43:28 +00:00
};
2024-10-17 21:09:21 +00:00
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-JHlvSo5wl0G9yF9KIwFXILu7T0Pv6f6JC0Q90wfuD94=";
2024-05-02 21:43:28 +00:00
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
cargo
rustc
meson
ninja
pkg-config
wrapGAppsHook4
desktop-file-utils
2024-05-23 18:21:24 +00:00
appstream
2024-05-02 21:43:28 +00:00
];
buildInputs = [
glib
gtk4
libadwaita
];
2024-05-05 15:31:03 +00:00
# needed for darwin
env.GETTEXT_DIR = "${gettext}";
2024-05-02 21:43:28 +00:00
meta = {
changelog = "https://github.com/FineFindus/Hieroglyphic/releases/tag/v${finalAttrs.version}";
description = "Tool based on detexify for finding LaTeX symbols from drawings";
2024-05-02 21:43:28 +00:00
homepage = "https://apps.gnome.org/en/Hieroglyphic/";
license = lib.licenses.gpl3Only;
mainProgram = "hieroglyphic";
maintainers = with lib.maintainers; [ tomasajt ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
})