2022-12-28 21:21:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, dagger }:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "dagger";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.3.7";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dagger";
|
|
|
|
repo = "dagger";
|
|
|
|
rev = "v${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-67ILrOVG31LrLgMcT+bZyWQ3lSahWOdWRyWpgUYSr4I=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
vendorHash = "sha256-bidJ7V/+yU3pBVXMdD4S0QVh9gKcvRN46Ut5OdSrnNc=";
|
|
|
|
proxyVendor = true;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"cmd/dagger"
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = dagger;
|
|
|
|
command = "dagger version";
|
|
|
|
};
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A portable devkit for CICD pipelines";
|
|
|
|
homepage = "https://dagger.io";
|
|
|
|
license = licenses.asl20;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ jfroche sagikazarmark ];
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
}
|