Commit 96f08060 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

kluctl: cleanup

parent 2ba2e438
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -5,9 +5,9 @@
  buildPackages,
  fetchFromGitHub,
  installShellFiles,
  testers,
  makeWrapper,
  python310,
  versionCheckHook,
}:

buildGoModule (finalAttrs: {
@@ -27,22 +27,16 @@ buildGoModule (finalAttrs: {

  ldflags = [
    "-s"
    "-w"
    "-X main.version=v${finalAttrs.version}"
  ];

  # Depends on docker
  doCheck = false;

  nativeBuildInputs = [
    installShellFiles
    makeWrapper
  ];

  passthru.tests.version = testers.testVersion {
    package = finalAttrs.finalPackage;
    version = "v${finalAttrs.version}";
  };
  # Depends on docker
  doCheck = false;

  postInstall =
    let
@@ -59,6 +53,11 @@ buildGoModule (finalAttrs: {
        --zsh  <(${emulator} $out/bin/kluctl completion zsh)
    '';

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;

  meta = {
    description = "Missing glue to put together large Kubernetes deployments";
    mainProgram = "kluctl";