commit 7b935c8bb9ae4f7f98c9aa130d32caa9268ceec0
parent 47aa9709390aec41291ce5fccd9c19d754ec2882
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 26 Nov 2021 12:34:41 +0100
users/vincent: use go_1_17 for dev 🙃
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/users/vincent/dev/go.nix b/users/vincent/dev/go.nix
@@ -6,7 +6,7 @@
};
home.packages = with pkgs; [
gcc
- go
+ go_1_17
godef
golangci-lint
golint
diff --git a/users/vincent/dev/src/tektoncd.shell.nix b/users/vincent/dev/src/tektoncd.shell.nix
@@ -3,10 +3,12 @@ let
# pkgs = sources.nixpkgs { };
pkgs = sources.pkgs-unstable { };
my = import /etc/nixos/nix/packages { pkgs = pkgs; };
+ go = pkgs.go_1_17;
in
pkgs.mkShell {
name = "tektoncd";
buildInputs = with pkgs; [
+ go
my.ko
my.oc
my.tkn
@@ -16,7 +18,7 @@ pkgs.mkShell {
shellHook = ''
export GOMODULE=on
export GOFLAGS="-mod=vendor"
- export GOROOT=${pkgs.go}/share/go
+ export GOROOT=${go}/share/go
export KUSTOMIZE_BIN=${pkgs.kustomize}/bin/kustomize
export KO_BIN=${my.ko}/bin/ko
'';