{ 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 ]; }; }