ks: add completions for bash and zsh (#364049)
[NixPkgs.git] / pkgs / applications / virtualization / docker / compose.nix
blob64f212addfc460ec434fa2b9464a8dd27138c753
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "docker-compose";
5   version = "2.30.3";
7   src = fetchFromGitHub {
8     owner = "docker";
9     repo = "compose";
10     rev = "v${version}";
11     hash = "sha256-L+RDO31LnQbWA22bkCrnU2QDF6+eCPwbPpzZxHGrZ1Q=";
12   };
14   postPatch = ''
15     # entirely separate package that breaks the build
16     rm -rf e2e/
17   '';
19   vendorHash = "sha256-IbDr2cTGmJZM8G2cj35CwfEX+DWVD0L4pUxHBvu9EfI=";
21   ldflags = [ "-X github.com/docker/compose/v2/internal.Version=${version}" "-s" "-w" ];
23   doCheck = false;
24   installPhase = ''
25     runHook preInstall
26     install -D $GOPATH/bin/cmd $out/libexec/docker/cli-plugins/docker-compose
28     mkdir -p $out/bin
29     ln -s $out/libexec/docker/cli-plugins/docker-compose $out/bin/docker-compose
30     runHook postInstall
31   '';
33   meta = with lib; {
34     description = "Docker CLI plugin to define and run multi-container applications with Docker";
35     mainProgram = "docker-compose";
36     homepage = "https://github.com/docker/compose";
37     license = licenses.asl20;
38     maintainers = [ ];
39   };