From 6ea9066253291a67240d245629c93b7e50c3608c Mon Sep 17 00:00:00 2001 From: adisbladis Date: Fri, 24 Jul 2020 11:37:14 +0200 Subject: [PATCH] Remove builder from output --- default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/default.nix b/default.nix index 9082661..87394c2 100644 --- a/default.nix +++ b/default.nix @@ -14,4 +14,13 @@ in pkgs.buildGoApplication { version = "0.1"; src = lib.cleanSource ./.; modules = ./gomod2nix.toml; + + nativeBuildInputs = [ + pkgs.makeWrapper + ]; + + postInstall = '' + wrapProgram $out/bin/gomod2nix --prefix PATH : ${lib.makeBinPath [ pkgs.nix-prefetch-git ]} + rm -f $out/bin/builder + ''; }