20 stdenv.mkDerivation (finalAttrs: {
21 pname = "hieroglyphic";
24 src = fetchFromGitHub {
26 repo = "Hieroglyphic";
27 rev = "refs/tags/v${finalAttrs.version}";
28 hash = "sha256-8UUFatJwtxqumhHd0aiPk6nKsaaF/jIIqMFxXye0X8U=";
31 # We have to use importCargoLock here because `cargo vendor` currently doesn't support workspace
32 # inheritance within Git dependencies, but importCargoLock does.
33 cargoDeps = rustPlatform.importCargoLock {
34 lockFile = ./Cargo.lock;
36 "detexify-0.4.0" = "sha256-BPOHNr3pwu2il3/ERko+WHAWby4rPR49i62tXDlDRu0=";
41 rustPlatform.cargoSetupHook
59 env.GETTEXT_DIR = "${gettext}";
62 changelog = "https://github.com/FineFindus/Hieroglyphic/releases/tag/v${finalAttrs.version}";
63 description = "Tool based on detexify for finding LaTeX symbols from drawings";
64 homepage = "https://apps.gnome.org/en/Hieroglyphic/";
65 license = lib.licenses.gpl3Only;
66 mainProgram = "hieroglyphic";
67 maintainers = with lib.maintainers; [ tomasajt ];
68 platforms = lib.platforms.linux ++ lib.platforms.darwin;