686ce24904
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
34 lines
839 B
Nix
34 lines
839 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, dagger }:
|
|
|
|
buildGoModule rec {
|
|
pname = "dagger";
|
|
version = "0.3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dagger";
|
|
repo = "dagger";
|
|
rev = "v${version}";
|
|
hash = "sha256-70qN5cZb0EjBPE5xpeKUv46JD+B8rYaDejAfaqC0Y4M=";
|
|
};
|
|
|
|
vendorHash = "sha256-9a5W8+tQ5rhtq4uul84AtxcKOc25lfe7bMpgbhRT9/Y=";
|
|
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 ];
|
|
};
|
|
}
|