Help overriding k9s

Hello. I tried overriding k9s with this

k9s = super.k9s.overrideAttrs (oldAttrs: rec {
  version = "0.25.18";
  src = super.fetchFromGitHub {
    owner = "derailed";
    repo = "k9s";
    rev = "v${version}";
    sha256 = "sha256-iUhMPtFX7qFULegiyhlT4aG9q3deZ8aRqyEcbZ9jY/s=";
  };
});

But I get this error

error: builder for '/nix/store/s7gjc42qp9sb7vwn5kn2xn2nwwsqfyf6-k9s-0.25.18.drv' failed with exit code 1;
       last 10 log lines:
       >    k8s.io/utils@v0.0.0-20220728103510-ee6ede2d64ed: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
       >    oras.land/oras-go@v1.2.0: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
       >   sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
       >        sigs.k8s.io/kustomize/api@v0.12.1: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
       >  sigs.k8s.io/kustomize/kyaml@v0.13.9: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
       >        sigs.k8s.io/structured-merge-diff/v4@v4.2.3: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
       >
       >       To ignore the vendor directory, use -mod=readonly or -mod=mod.
       >         To sync the vendor directory, run:
       >             go mod vendor
       For full logs, run 'nix log /nix/store/s7gjc42qp9sb7vwn5kn2xn2nwwsqfyf6-k9s-0.25.18.drv'.
error: 1 dependencies of derivation '/nix/store/19bna7pg0bm0chfnvjs9kiinh5n7c6w4-nix-shell-env.drv' failed to build

Greetings !

From what I can see k9s on unstable channel is

 nix search nixpkgs#k9s
* legacyPackages.x86_64-linux.k9s (0.27.4)
  Kubernetes CLI To Manage Your Clusters In Style

are you trying to downgrade k9s to that specific version ?
sorry I haven’t tried to reproduce your issue yet, I am just trying to understand the intent/goal

Hey! Thanks for the response. Yes, I’m trying to downgrade to 0.25.18.

My dad helped me figure it out this problem here go-ligma-yourself.nix · GitHub

1 Like