15 libayatana-appindicator,
26 stdenv.mkDerivation (finalAttrs: {
30 src = fetchFromGitHub {
33 rev = finalAttrs.version;
34 hash = "sha256-Y0/N5xunEXOG+FuZE23xsSwFd6PL1XClV5UIckTYNPs=";
37 sourceRoot = "${finalAttrs.src.name}/src-tauri";
40 substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
41 --replace "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
44 pnpmDeps = pnpm.fetchDeps {
45 inherit (finalAttrs) pname version src;
46 hash = "sha256-AmMV8Nrn+zH/9bDkFX3Mx5xIQjkoXR8SzkdJRXkxTbA=";
51 cargoDeps = rustPlatform.importCargoLock {
52 lockFile = ./Cargo.lock;
54 # All other crates in the same workspace reuse this hash.
55 "tauri-plugin-autostart-0.0.0" = "sha256-fgJvoe3rKom2DdXXgd5rx7kzaWL/uvvye8jfL2SNhrM=";
60 rustPlatform.cargoSetupHook
73 libayatana-appindicator
79 env.ESBUILD_BINARY_PATH = "${lib.getExe (
87 src = fetchFromGitHub {
91 hash = "sha256-FpvXWIlt67G8w3pBKZo/mcp57LunxDmRUaCU/Ne89B8=";
99 # pnpm.configHook has to write to .., as our sourceRoot is set to src-tauri
100 # TODO: move frontend into its own drv
105 description = "Cross-platform translation software";
107 homepage = "https://pot.pylogmon.com";
108 platforms = platforms.linux;
109 license = licenses.gpl3Only;
110 maintainers = with maintainers; [ linsui ];