@@ -43,7 +43,7 @@
|
|||||||
prootPatched
|
prootPatched
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
appBinGuess = "${drv}/bin";
|
mainProgram = drv.meta.mainProgram or (throw "${drv.name} has no meta.mainProgram set");
|
||||||
prootStoreBase = builtins.baseNameOf prootPatched;
|
prootStoreBase = builtins.baseNameOf prootPatched;
|
||||||
PROOT_REL = "/nix/store/${prootStoreBase}/bin/proot";
|
PROOT_REL = "/nix/store/${prootStoreBase}/bin/proot";
|
||||||
in
|
in
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
done < ${ci}/store-paths
|
done < ${ci}/store-paths
|
||||||
|
|
||||||
# 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=$(find ${appBinGuess} -maxdepth 1 -type f -perm -111 | head -n1)
|
APP_BIN="${drv}/bin/${mainProgram}"
|
||||||
if [ -z "''${APP_BIN:-}" ]; then
|
if [ -z "''${APP_BIN:-}" ]; then
|
||||||
echo "no executable found in ${appBinGuess}" >&2
|
echo "no executable found in ${appBinGuess}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user