biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / virtualization / docker / compose.nix
blob45099329c2e62f5bd8edce678914c93de8e9e007
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "docker-compose";
5   version = "2.29.7";
7   src = fetchFromGitHub {
8     owner = "docker";
9     repo = "compose";
10     rev = "v${version}";
11     hash = "sha256-6ksZAGVAFnLwPnCXlCtp4cWfxzJRp/bfVkpvp3Z6fiQ=";
12   };
14   postPatch = ''
15     # entirely separate package that breaks the build
16     rm -rf e2e/
17   '';
19   vendorHash = "sha256-B2ywdZjp7h7eFYNJ4wXmAdbOxc8ftGqHnLmDvzQASJE=";
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   };