From 17ec52bf5251ca70a750c258d353dea39a04c388 Mon Sep 17 00:00:00 2001 From: Vegar Sechmann Molvig Date: Wed, 23 Oct 2024 15:45:03 +0200 Subject: [PATCH] fix rename step in nix build --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 55ad08f..7d29d33 100644 --- a/default.nix +++ b/default.nix @@ -10,6 +10,6 @@ buildGoApplication { src = ./.; modules = ./gomod2nix.toml; postInstall = '' - mv $out/bin/narcos $out/bin/narc + [[ -f $out/bin/narcos ]] && mv $out/bin/narcos $out/bin/narc ''; }