From ce3a6771f0a019a804d068c8192161b23f7aefc2 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Sun, 29 May 2022 17:06:13 +0800 Subject: [PATCH] gomod2nix: Filter builder expressions from cli build --- default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 8c13939..8ca23d6 100644 --- a/default.nix +++ b/default.nix @@ -5,7 +5,7 @@ buildGoApplication { pname = "gomod2nix"; version = "0.1"; src = lib.cleanSourceWith { - filter = name: type: ! lib.hasSuffix "tests" name; + filter = name: type: (! lib.hasSuffix "tests" name) && (! lib.hasSuffix "builder" name); src = lib.cleanSource ./.; }; modules = ./gomod2nix.toml; @@ -18,6 +18,5 @@ buildGoApplication { postInstall = '' wrapProgram $out/bin/gomod2nix --prefix PATH : ${lib.makeBinPath [ go ]} - rm -f $out/bin/builder ''; }