pot: use cargo-tauri.hook
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user