-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f9a6f4
commit 4b365e7
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
stdenv, | ||
lib, | ||
buildGoModule, | ||
fetchFromGitHub, | ||
}: | ||
buildGoModule rec { | ||
pname = "testkube"; | ||
version = "2.1.56"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "kubeshop"; | ||
repo = "testkube"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-P+A9lUMzQ3M0SEVZBMDSMj8S0uCsEhadv5vDRxbQORA="; | ||
}; | ||
|
||
vendorHash = "sha256-44aIwddMH6CMfTno90xGkHgna4DO2Ii3KhpMwv6Zjmo="; | ||
|
||
ldflags = [ | ||
"-X main.version=${version}" | ||
"-X main.builtBy=nixpkgs" | ||
"-X main.commit=v${version}" | ||
"-X main.date=1970-01-01-00:00:01" | ||
]; | ||
|
||
doCheck = false; | ||
subPackages = [ "cmd/kubectl-testkube" ]; | ||
|
||
meta = with lib; { | ||
description = "Kubernetes-native framework for test definition and execution"; | ||
homepage = "https://github.com/kubeshop/testkube/"; | ||
license = licenses.mit; | ||
mainProgram = "kubectl-testkube"; | ||
maintainers = with maintainers; [ mathstlouis ]; | ||
}; | ||
} |