410b979fe2
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
34 lines
838 B
Nix
34 lines
838 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, dagger }:
|
|
|
|
buildGoModule rec {
|
|
pname = "dagger";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dagger";
|
|
repo = "dagger";
|
|
rev = "v${version}";
|
|
hash = "sha256-xSEO1UD5piTFBBdse45yPAXKEwUm2tCxvwNTrlfgRNk=";
|
|
};
|
|
|
|
vendorHash = "sha256-nBlebDN1TsB+RFArl5fR3xyz5FWr4wOxL+9oWVvOpwI=";
|
|
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 ];
|
|
};
|
|
}
|