nixpkgs/pkgs/applications/virtualization/docker/compose.nix
Bastien Rivière 33bc6f8706
docker-compose2: init at 2.0.1 (#141366)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-10-16 18:19:32 +02:00

26 lines
681 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "docker-compose";
version = "2.0.1";
src = fetchFromGitHub {
owner = "docker";
repo = "compose";
rev = "v${version}";
sha256 = "sha256-6OjA3f6c9s/86UPxy9EqLIc/0ZuW6UhKyQdkM7YoTsU=";
};
vendorSha256 = "sha256-6h36TZmo0RvB3YzZRmsrs2Fbl+8zPTuL9LxWkuNgRqw=";
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";
license = licenses.asl20;
maintainers = [ maintainers.babariviere ];
};
}