From 9d4b485def0157e2aa347c56be5eadd3c751577a Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 7 May 2025 11:19:35 +0200 Subject: [PATCH] fix(nix): Fix broken shebang for cross-compiled bundles Signed-off-by: Steffen Vogel --- packaging/nix/villas.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/nix/villas.nix b/packaging/nix/villas.nix index 10e5f263e..aa6efb52f 100644 --- a/packaging/nix/villas.nix +++ b/packaging/nix/villas.nix @@ -36,15 +36,16 @@ withNodeWebrtc ? withAllNodes, withNodeZeromq ? withAllNodes, # Minimal dependencies + bash, cmake, coreutils, graphviz, jq, lib, makeWrapper, - system, pkg-config, stdenv, + system, # Optional dependencies comedilib, curl, @@ -103,6 +104,8 @@ stdenv.mkDerivation { mv $out/include/villas/* $dev/include/villas/ rm -d $out/include/villas fi + patchShebangs --host $out/bin/villas + patchShebangs --host $out/bin/villas-api wrapProgram $out/bin/villas \ --set PATH ${ lib.makeBinPath [ @@ -138,6 +141,7 @@ stdenv.mkDerivation { openssl curl spdlog + bash ] ++ lib.optionals withExtraGraphviz [ graphviz ] ++ lib.optionals withHookLua [ lua ]