2021-10-17 02:12:59 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "docker-compose";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.29.1";
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "docker";
|
|
|
|
repo = "compose";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-6GZtKfPBE9Wl6ccwU1OY+9rq+IZr2qpOB4Vlxidhisw=";
|
2021-10-17 02:12:59 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
# entirely separate package that breaks the build
|
|
|
|
rm -rf e2e/
|
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-CkXCAqHOlSc3jHqVUYovT8YDnlCZewpLv3sC0ADgwL0=";
|
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 = ''
|
2022-06-16 17:23:12 +00:00
|
|
|
runHook preInstall
|
2021-10-17 02:12:59 +00:00
|
|
|
install -D $GOPATH/bin/cmd $out/libexec/docker/cli-plugins/docker-compose
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $out/libexec/docker/cli-plugins/docker-compose $out/bin/docker-compose
|
|
|
|
runHook postInstall
|
2021-10-17 02:12:59 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Docker CLI plugin to define and run multi-container applications with Docker";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "docker-compose";
|
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;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-10-17 02:12:59 +00:00
|
|
|
};
|
|
|
|
}
|