From 77cac805b0d5f424bd3338b59ac6902f17dc83ae Mon Sep 17 00:00:00 2001 From: Slendi Date: Tue, 16 Sep 2025 14:28:13 +0300 Subject: [PATCH] asdf Signed-off-by: Slendi --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index a274254..e990dbf 100644 --- a/flake.nix +++ b/flake.nix @@ -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