fix: nix flake missing wrapper

skip tests

gotta make the nix build work remotely
This commit is contained in:
Per Stark
2025-05-06 10:13:24 +02:00
parent e9307eac94
commit 1393317eb8
2 changed files with 14 additions and 8 deletions

View File

@@ -32,11 +32,13 @@
cargoLock = {
lockFile = ./Cargo.lock;
};
# Lets skip tests
doCheck = false;
nativeBuildInputs = [
pkgs.pkg-config
pkgs.rustfmt
# pkgs.makeWrapper # For the postInstall hook
pkgs.makeWrapper # For the postInstall hook
];
buildInputs = [
pkgs.openssl
@@ -49,11 +51,11 @@
chromium_executable = "${pkgs.chromium}/bin/chromium";
in ''
echo "Wrapping binaries in postInstall hook..."
ls -l $out/bin # Add this line to debug which binaries are present
ls -l $out/bin
wrapProgram $out/bin/main \
--set CHROME_BIN "${chromium_executable}"
--set CHROME "${chromium_executable}"
wrapProgram $out/bin/worker \
--set CHROME_BIN "${chromium_executable}"
--set CHROME "${chromium_executable}"
echo "Finished wrapping."
'';