mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
37 lines
854 B
Nix
37 lines
854 B
Nix
{ lib, stdenv, buildGoModule, fetchFromGitHub, testers, kluctl }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kluctl";
|
|
version = "2.20.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kluctl";
|
|
repo = "kluctl";
|
|
rev = "v${version}";
|
|
hash = "sha256-Z3tXfzbVs0FWTsi6vbM6BNQBLeCseWn4yBR5PNeRz2s=";
|
|
};
|
|
|
|
vendorHash = "sha256-z0eiWU5CFMfK6fz+LUtxtSP/MAuVn7iOHB+A7Uv2OQY=";
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=v${version}" ];
|
|
|
|
# Depends on docker
|
|
doCheck = false;
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = kluctl;
|
|
version = "v${version}";
|
|
};
|
|
|
|
postInstall = ''
|
|
mv $out/bin/{cmd,kluctl}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The missing glue to put together large Kubernetes deployments";
|
|
homepage = "https://kluctl.io/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ sikmir ];
|
|
};
|
|
}
|