From 8db50d94c0e417672263a8dd97bbc3b62be4ceeb Mon Sep 17 00:00:00 2001 From: Varun Narravula Date: Wed, 3 Dec 2025 15:56:10 -0800 Subject: [PATCH] refactor(nix): remove with keyword antipattern --- flake.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 74aea6f..bda4d30 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,7 @@ system: let pkgs = pkgsFor system; + inherit (pkgs) lib; # Update version when releasing version = "1.4.2"; @@ -40,10 +41,10 @@ "-X main.newtVersion=${version}" ]; - meta = with pkgs.lib; { + meta = { description = "A tunneling client for Pangolin"; homepage = "https://github.com/fosrl/newt"; - license = licenses.gpl3; + license = lib.licenses.gpl3; maintainers = [ ]; }; }; @@ -53,10 +54,20 @@ system: let pkgs = pkgsFor system; + + inherit (pkgs) + go + gopls + gotools + go-outline + gopkgs + godef + golint + ; in { default = pkgs.mkShell { - buildInputs = with pkgs; [ + buildInputs = [ go gopls gotools