mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
855 B
Nix
33 lines
855 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kuttl";
|
|
version = "0.19.0";
|
|
cli = "kubectl-kuttl";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kudobuilder";
|
|
repo = "kuttl";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-7fcVmLvRbKYuWuqwqZWlQf08YEyowcTxrp5RteV8qyU=";
|
|
};
|
|
|
|
vendorHash = "sha256-E6gzr9gCLbRaoJU/pYA2cAy0rv5SUVmwf0m34lchF+M=";
|
|
|
|
subPackages = [ "cmd/kubectl-kuttl" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/kudobuilder/kuttl/pkg/version.gitVersion=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "KUbernetes Test TooL (KUTTL) provides a declarative approach to testing production-grade Kubernetes operators";
|
|
homepage = "https://github.com/kudobuilder/kuttl";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ diegolelis ];
|
|
mainProgram = "kubectl-kuttl";
|
|
};
|
|
}
|