pot: use cargo-tauri.hook

This commit is contained in:
seth
2024-09-30 20:13:15 -04:00
parent 43256320c5
commit 686cff417a
+1 -10
View File
@@ -60,7 +60,7 @@ stdenv.mkDerivation (finalAttrs: {
rustPlatform.cargoSetupHook
cargo
rustc
cargo-tauri
cargo-tauri.hook
nodejs
pnpm.configHook
wrapGAppsHook3
@@ -101,15 +101,6 @@ stdenv.mkDerivation (finalAttrs: {
chmod +w ..
'';
preBuild = ''
# Use cargo-tauri from nixpkgs instead of pnpm tauri from npm
cargo tauri build -b deb
'';
preInstall = ''
mv target/release/bundle/deb/*/data/usr/ $out
'';
meta = with lib; {
description = "Cross-platform translation software";
mainProgram = "pot";