2021-10-16 16:19:32 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "docker-compose";
|
2022-08-02 11:08:41 +00:00
|
|
|
version = "2.9.0";
|
2021-10-16 16:19:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "docker";
|
|
|
|
repo = "compose";
|
|
|
|
rev = "v${version}";
|
2022-08-02 11:08:41 +00:00
|
|
|
sha256 = "sha256-CbYlu7dOpHGceGLFkI3p494SNlFL3JyBv+/yy0PRkPY=";
|
2021-10-16 16:19:32 +00:00
|
|
|
};
|
|
|
|
|
2022-08-02 11:08:41 +00:00
|
|
|
vendorSha256 = "sha256-9ec34jpDA7MUoAhWZMGCmXkOi/iK9mdJpFZ1qu9QgrU=";
|
2021-10-16 16:19:32 +00:00
|
|
|
|
2022-01-19 13:43:35 +00:00
|
|
|
ldflags = [ "-X github.com/docker/compose/v2/internal.Version=${version}" "-s" "-w" ];
|
2021-12-14 08:37:47 +00:00
|
|
|
|
2021-10-16 16:19:32 +00:00
|
|
|
doCheck = false;
|
|
|
|
installPhase = ''
|
2022-06-04 02:14:12 +00:00
|
|
|
runHook preInstall
|
2021-10-16 16:19:32 +00:00
|
|
|
install -D $GOPATH/bin/cmd $out/libexec/docker/cli-plugins/docker-compose
|
2022-06-04 02:14:12 +00:00
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $out/libexec/docker/cli-plugins/docker-compose $out/bin/docker-compose
|
|
|
|
runHook postInstall
|
2021-10-16 16:19:32 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Docker CLI plugin to define and run multi-container applications with Docker";
|
2022-01-19 13:43:35 +00:00
|
|
|
homepage = "https://github.com/docker/compose";
|
2021-10-16 16:19:32 +00:00
|
|
|
license = licenses.asl20;
|
2022-01-19 13:43:35 +00:00
|
|
|
maintainers = with maintainers; [ babariviere SuperSandro2000 ];
|
2021-10-16 16:19:32 +00:00
|
|
|
};
|
|
|
|
}
|