15 libayatana-appindicator,
26 stdenv.mkDerivation (finalAttrs: {
30 src = fetchFromGitHub {
33 rev = finalAttrs.version;
34 hash = "sha256-PUXZT1kiInM/CXUoRko/5qlrRurGpQ4ym5YMTgFwuxE=";
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-iYQNGRWqXYBU+WIH/Xm8qndgOQ6RKYCtAyi93kb7xrQ=";
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-rWk9Qz1XmByqPRIgR+f12743uYvnEGTHno9RrxmT8JE=";
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-app.com";
108 platforms = lib.platforms.linux;
109 license = lib.licenses.gpl3Only;
110 maintainers = with lib.maintainers; [ linsui ];