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