5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
35 lines
867 B
Nix
35 lines
867 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, dagger }:
|
|
|
|
buildGoModule rec {
|
|
pname = "dagger";
|
|
version = "0.6.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dagger";
|
|
repo = "dagger";
|
|
rev = "v${version}";
|
|
hash = "sha256-ms736KXQjqWnIU7WHQ4k1r6qwCp07N6tufCx9s9biVc=";
|
|
};
|
|
|
|
vendorHash = "sha256-zssmvu1s7O2DdvjxUYkR13CKOe4EYn50RFRRIPBJ9qg=";
|
|
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";
|
|
version = "v${version}";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A portable devkit for CICD pipelines";
|
|
homepage = "https://dagger.io";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jfroche sagikazarmark ];
|
|
};
|
|
}
|