Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-09-16 14:29:39 +03:00
parent 77cac805b0
commit 2359e26305

View File

@@ -48,7 +48,7 @@
PROOT_REL = "/nix/store/${prootStoreBase}/bin/proot";
in
pkgs.stdenvNoCC.mkDerivation {
name = "myApp.run";
name = "${mainProgram}-bdl";
nativeBuildInputs = [
pkgs.coreutils
pkgs.findutils
@@ -69,8 +69,8 @@
# 2) pick app binary and make relative path used by the runner
APP_BIN="${drv}/bin/${mainProgram}"
if [ -z "''${APP_BIN:-}" ]; then
echo "no executable found in ${appBinGuess}" >&2
if [ ! -x "$APP_BIN" ]; then
echo "mainProgram ${mainProgram} not found in ${drv}/bin" >&2
exit 1
fi
APP_REL="/nix/store/$(basename "$(dirname "$APP_BIN")")/$(basename "$APP_BIN")"