@@ -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")"
|
||||
|
||||
Reference in New Issue
Block a user