14 src = fetchFromGitHub {
17 rev = "refs/tags/v${version}";
18 hash = "sha256-sf+X+qafR0kpJTNIYoLr8q6stm+DgiD/yhVRyBRPA/s=";
21 vendorHash = "sha256-aWXU2UG4/U8g4dgspjyIfTT2J++WoJlLHAo6K3CSLxc=";
28 "-X=main.version=${version}"
29 "-X=main.commit=nixpkg-${version}"
30 "-X=main.date=1970-01-01"
33 nativeBuildInputs = [ installShellFiles ];
37 passthru.tests.version = testers.testVersion { package = myks; };
40 lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
41 installShellCompletion --cmd myks \
42 --bash <($out/bin/myks completion bash) \
43 --zsh <($out/bin/myks completion zsh) \
44 --fish <($out/bin/myks completion fish)
48 changelog = "https://github.com/mykso/myks/blob/v${version}/CHANGELOG.md";
49 description = "Configuration framework for Kubernetes applications";
50 license = licenses.mit;
51 homepage = "https://github.com/mykso/myks";