2021-10-17 02:12:59 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "docker-compose";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "2.2.3";
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "docker";
|
|
|
|
repo = "compose";
|
|
|
|
rev = "v${version}";
|
2022-01-19 23:45:15 +00:00
|
|
|
sha256 = "sha256-c6rwRFJ/9moukd56qrmHxOeULhSPHCU0Cj+vw4TQ8+Q=";
|
2021-10-17 02:12:59 +00:00
|
|
|
};
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
vendorSha256 = "sha256-W+bcjUXPZjldjhgaGsUKS1vSvS3yP/kH0QqwyvhL7Ww=";
|
2021-10-17 02:12:59 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
ldflags = [ "-X github.com/docker/compose/v2/internal.Version=${version}" "-s" "-w" ];
|
2022-01-03 16:56:52 +00:00
|
|
|
|
2021-10-17 02:12:59 +00:00
|
|
|
doCheck = false;
|
|
|
|
installPhase = ''
|
|
|
|
install -D $GOPATH/bin/cmd $out/libexec/docker/cli-plugins/docker-compose
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Docker CLI plugin to define and run multi-container applications with Docker";
|
2022-01-19 23:45:15 +00:00
|
|
|
homepage = "https://github.com/docker/compose";
|
2021-10-17 02:12:59 +00:00
|
|
|
license = licenses.asl20;
|
2022-01-19 23:45:15 +00:00
|
|
|
maintainers = with maintainers; [ babariviere SuperSandro2000 ];
|
2021-10-17 02:12:59 +00:00
|
|
|
};
|
|
|
|
}
|