Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-09-16 14:28:13 +03:00
parent 668e55df2a
commit 77cac805b0

View File

@@ -43,7 +43,7 @@
prootPatched
];
};
appBinGuess = "${drv}/bin";
mainProgram = drv.meta.mainProgram or (throw "${drv.name} has no meta.mainProgram set");
prootStoreBase = builtins.baseNameOf prootPatched;
PROOT_REL = "/nix/store/${prootStoreBase}/bin/proot";
in
@@ -68,7 +68,7 @@
done < ${ci}/store-paths
# 2) pick app binary and make relative path used by the runner
APP_BIN=$(find ${appBinGuess} -maxdepth 1 -type f -perm -111 | head -n1)
APP_BIN="${drv}/bin/${mainProgram}"
if [ -z "''${APP_BIN:-}" ]; then
echo "no executable found in ${appBinGuess}" >&2
exit 1