1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-QD/yacQOII1AS9VHB/2cTgoxLioyKYoROSizkHooX9w=";
14 subPackages = [ "cmd/pv-migrate" ];
16 vendorHash = "sha256-NXL7LaGSfiJW9lQrZyh5Iw1QvQ9T8omfafADm4PlGik=";
21 "-X main.version=v${version}"
22 "-X main.commit=${src.rev}"
23 "-X main.date=1970-01-01-00:00:01"
31 installShellCompletion --cmd pv-migrate \
32 --bash <($out/bin/pv-migrate completion bash) \
33 --fish <($out/bin/pv-migrate completion fish) \
34 --zsh <($out/bin/pv-migrate completion zsh)
38 description = "CLI tool to easily migrate Kubernetes persistent volumes";
39 mainProgram = "pv-migrate";
40 homepage = "https://github.com/utkuozdemir/pv-migrate";
41 changelog = "https://github.com/utkuozdemir/pv-migrate/releases/tag/${version}";
42 license = licenses.afl20;
43 maintainers = with lib.maintainers; [ ivankovnatsky qjoly ];