Unverified Commit 686cff41 authored by seth's avatar seth
Browse files

pot: use cargo-tauri.hook

parent 43256320
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -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";