ed0c4a69f0
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
34 lines
838 B
Nix
34 lines
838 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, dagger }:
|
|
|
|
buildGoModule rec {
|
|
pname = "dagger";
|
|
version = "0.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dagger";
|
|
repo = "dagger";
|
|
rev = "v${version}";
|
|
hash = "sha256-R9O+ilOz5AZmsSR0uoOhXLNMTUEej9sV4ONaIF6ZnVc=";
|
|
};
|
|
|
|
vendorHash = "sha256-/ZwIuzUvs7GvpoR6CfxdCivyOS8kDOukM92NuWFXJCY=";
|
|
proxyVendor = true;
|
|
|
|
subPackages = [
|
|
"cmd/dagger"
|
|
];
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/dagger/dagger/internal/engine.Version=${version}" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = dagger;
|
|
command = "dagger version";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A portable devkit for CICD pipelines";
|
|
homepage = "https://dagger.io";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jfroche sagikazarmark ];
|
|
};
|
|
}
|