forked from mirrors/nixpkgs
buildkit: 0.8.3 -> 0.9.0
https://github.com/moby/buildkit/releases/tag/v0.9.0
This commit is contained in:
parent
352382dad3
commit
67a7f01005
|
@ -1,20 +1,23 @@
|
|||
{ lib, stdenv, fetchFromGitHub, buildGoPackage }:
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "buildkit";
|
||||
version = "0.8.3";
|
||||
|
||||
goPackagePath = "github.com/moby/buildkit";
|
||||
subPackages = [ "cmd/buildctl" ] ++ lib.optionals stdenv.isLinux [ "cmd/buildkitd" ];
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "moby";
|
||||
repo = "buildkit";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-dHtGxugTtxHcfZHMIHinlcH05ss7zT/+Ll1WboAhw9o=";
|
||||
sha256 = "0i04b5ngvhkan45mx6xjcia0dsx0dc6w8bwy90yg3qnz7yzidm2d";
|
||||
};
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version} -X ${goPackagePath}/version.Revision=${src.rev}" ];
|
||||
vendorSha256 = null;
|
||||
|
||||
subPackages = [ "cmd/buildctl" ] ++ lib.optionals stdenv.isLinux [ "cmd/buildkitd" ];
|
||||
|
||||
ldflags = [ "-s" "-w" "-X github.com/moby/buildkit/version.Version=${version}" "-X github.com/moby/buildkit/version.Revision=${src.rev}" ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit";
|
||||
|
|
Loading…
Reference in a new issue