From 38de4938af684cd71bf1ddf967ca82637cb76331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 6 Mar 2023 14:40:46 +0100 Subject: [PATCH] nix: fix nix run by setting mainProgram to waku MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise it fails with: ``` > nix run github:status-im/go-waku error: unable to execute '/nix/store/xsmhw1yqz5w9bdgfsprxmhcycl7011wz-go-waku/bin/go-waku': No such file or directory > ls -l /nix/store/xsmhw1yqz5w9bdgfsprxmhcycl7011wz-go-waku/bin total 37914 -r-xr-xr-x 1 root root 38775544 Jan 1 1970 waku ``` Signed-off-by: Jakub SokoĊ‚owski --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 6d700ba6..0bbe7e11 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,8 @@ doCheck = false; # FIXME: This needs to be manually changed when updating modules. vendorSha256 = "sha256-TvQfLQEYDujfXInQ+i/LoSGtedozZvX8WgzpqiryYHY="; + # Fix for 'nix run' trying to execute 'go-waku'. + meta = { mainProgram = "waku"; }; }; in rec { packages = forAllSystems (system: {