home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit e52530b7137f17155b4a756e6956f5f0fe151b86
parent 20cba4e59cf964090ab4567d4f268421234f41c6
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri,  1 Dec 2023 15:57:42 +0100

nix/packages: remove kam

(not used)

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mnix/packages/default.nix | 5-----
Dnix/packages/kam/default.nix | 46----------------------------------------------
2 files changed, 0 insertions(+), 51 deletions(-)

diff --git a/nix/packages/default.nix b/nix/packages/default.nix @@ -40,11 +40,6 @@ rec { buildGoModule = pkgs.buildGo120Module; }; - inherit (pkgs.callPackage ./kam { }) - kam_1_1 - kam - ; - operator-tool = pkgs.callPackage ./operator-tooling { }; manifest-tool = pkgs.callPackage ./manifest-tool { }; diff --git a/nix/packages/kam/default.nix b/nix/packages/kam/default.nix @@ -1,46 +0,0 @@ -{ stdenv, lib, fetchurl }: - -with lib; -rec { - kamGen = - { version - , sha256 - }: - - stdenv.mkDerivation rec { - pname = "kam"; - name = "${pname}-${version}"; - - src = fetchurl { - url = "https://mirror.openshift.com/pub/openshift-v4/clients/kam/v${version}/kam-linux-amd64.tar.gz"; - sha256 = "${sha256}"; - }; - - phases = " unpackPhase installPhase fixupPhase "; - - unpackPhase = '' - runHook preUnpack - mkdir ${name} - tar -C ${name} -xzf $src - ''; - - installPhase = '' - runHook preInstall - install -D ${name}/kam $out/bin/kam - patchelf \ - --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ - $out/bin/kam - # completions - mkdir -p $out/share/bash-completion/completions/ - $out/bin/kam completion bash > $out/share/bash-completion/completions/kam - mkdir -p $out/share/zsh/site-functions - $out/bin/kam completion zsh > $out/share/zsh/site-functions/_kam - ''; - }; - - kam = kam_1_1; - kam_1_1 = makeOverridable kamGen { - version = "1.1.1"; - sha256 = "0cxf2n6y9arabq4ri3ni8v17vaflg9xqycmjwv2cm13bj4d7a1nq"; - }; -}