From 2359e26305d60209ab99375fa3676efe7309e078 Mon Sep 17 00:00:00 2001 From: Slendi Date: Tue, 16 Sep 2025 14:29:39 +0300 Subject: [PATCH] sdfa Signed-off-by: Slendi --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index e990dbf..51eede6 100644 --- a/flake.nix +++ b/flake.nix @@ -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")"