default.nix 653 B

1234567891011121314151617181920212223242526
  1. { config, pkgs, ... }:
  2. let
  3. promu = pkgs.stdenv.mkDerivation rec {
  4. pname = "promu";
  5. version = "0.6.0";
  6. src = builtins.fetchurl {
  7. url = "https://github.com/prometheus/promu/releases/download/v${version}/promu-${version}.linux-amd64.tar.gz";
  8. sha256 = "1d1d2932411e6c4f36eb578ecd3171efd6858200648d58419f26c77fe51a315d";
  9. };
  10. unpackPhase = "unpackFile $src";
  11. installPhase = ''
  12. mkdir -p $out/bin
  13. cp promu-${version}.linux-amd64/promu $out/bin/promu
  14. '';
  15. };
  16. in {
  17. environment.systemPackages = with pkgs; [
  18. kubectl
  19. kubectx
  20. kustomize
  21. argocd
  22. k9s
  23. aws-iam-authenticator
  24. promu
  25. ];
  26. }