22 inherit (darwin.apple_sdk.frameworks) CoreFoundation Foundation;
24 stdenv.mkDerivation (finalAttrs: {
25 pname = "hieroglyphic";
28 src = fetchFromGitHub {
30 repo = "Hieroglyphic";
31 rev = "refs/tags/v${finalAttrs.version}";
32 hash = "sha256-8UUFatJwtxqumhHd0aiPk6nKsaaF/jIIqMFxXye0X8U=";
35 # We have to use importCargoLock here because `cargo vendor` currently doesn't support workspace
36 # inheritance within Git dependencies, but importCargoLock does.
37 cargoDeps = rustPlatform.importCargoLock {
38 lockFile = ./Cargo.lock;
40 "detexify-0.4.0" = "sha256-BPOHNr3pwu2il3/ERko+WHAWby4rPR49i62tXDlDRu0=";
45 rustPlatform.cargoSetupHook
62 ++ lib.optionals stdenv.hostPlatform.isDarwin [
68 env.GETTEXT_DIR = "${gettext}";
71 changelog = "https://github.com/FineFindus/Hieroglyphic/releases/tag/v${finalAttrs.version}";
72 description = "Tool based on detexify for finding LaTeX symbols from drawings";
73 homepage = "https://apps.gnome.org/en/Hieroglyphic/";
74 license = lib.licenses.gpl3Only;
75 mainProgram = "hieroglyphic";
76 maintainers = with lib.maintainers; [ tomasajt ];
77 platforms = lib.platforms.linux ++ lib.platforms.darwin;