From 1063864803097da7c9fcb92d847c854261ff5c19 Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 4 Feb 2025 21:02:12 +0000 Subject: [PATCH] allow go build to produce static bins --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 211d18a..e6c8fed 100644 --- a/flake.nix +++ b/flake.nix @@ -40,8 +40,11 @@ formatter = forAllSystems (system: nixpkgsFor."${system}".alejandra); devShells = forAllSystems (system: let pkgs = nixpkgsFor.${system}; + staticShell = pkgs.mkShell.override { + stdenv = pkgs.pkgsStatic.stdenv; + }; in { - default = pkgs.mkShell { + default = staticShell { nativeBuildInputs = [ pkgs.go pkgs.air -- knotmirror 0.0.1