Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey committed Oct 13, 2024
1 parent beac072 commit 9bcf28d
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions pkgs/applications/misc/insulator2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
, cyrus_sasl
, stdenv
, fixup-yarn-lock
, yarn
, yarnConfigHook
, nodejs-slim
, cargo-tauri
, cargo
Expand Down Expand Up @@ -62,39 +62,26 @@ stdenv.mkDerivation rec {
};
};

configurePhase = ''
export HOME=$(mktemp -d)
export COREPACK_ROOT="true"
export SKIP_YARN_COREPACK_CHECK="true"
yarn config --offline set yarn-offline-mirror ${yarnOfflineCache}
fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules/
yarn run postinstall --offline
'';

preBuild = ''
yarn tauri build -b deb
'';

cargoRoot = "backend/";

buildAndTestSubdir = cargoRoot;

preInstall = ''
mv backend/target/release/bundle/deb/*/data/usr/ "$out"
mkdir -p $out
'';

buildAndTestDir = cargoRoot;
dontUseCmakeConfigure = true;

nativeBuildInputs = [
cmake
pkg-config
cmake
perl
rustPlatform.cargoSetupHook
cargo
rustc
cargo-tauri
cargo-tauri.hook
fixup-yarn-lock
yarn
yarnConfigHook
nodejs-slim
cyrus_sasl
jq
Expand Down

0 comments on commit 9bcf28d

Please sign in to comment.