14 src = fetchFromGitHub {
17 rev = "knative-v${version}";
18 hash = "sha256-x/SrRkgeLvjcd9LNgMGOf5TLU1GXpjY2Z2MyxrBZckc=";
23 subPackages = [ "cmd/func" ];
26 "-X main.vers=v${version}"
27 "-X main.date=19700101T000000Z"
28 "-X main.hash=${version}"
31 nativeBuildInputs = [ installShellFiles ];
34 installShellCompletion --cmd func \
35 --bash <($out/bin/func completion bash) \
36 --zsh <($out/bin/func completion zsh)
39 passthru.tests.version = testers.testVersion {
41 command = "func version";
42 version = "v${version}";
46 description = "Knative client library and CLI for creating, building, and deploying Knative Functions";
48 homepage = "https://github.com/knative/func";
49 changelog = "https://github.com/knative/func/releases/tag/knative-v${version}";
50 license = licenses.asl20;
51 maintainers = with maintainers; [ maxwell-lt ];