@@ -0,0 +1,39 @@
1+{ lib, buildGoPackage, fetchFromGitHub }:
2+
3+let
4+ generic = { version, sha256 }: buildGoPackage rec {
5+ name = "rancher-compose-${version}";
6+
7+ goPackagePath = "github.com/rancher/rancher-compose";
8+
9+ src = fetchFromGitHub {
10+ owner = "rancher";
11+ repo = "rancher-compose";
12+ rev = "v${version}";
13+ inherit sha256;
14+ };
15+
16+ excludedPackages = "scripts";
17+
18+ meta = with lib; {
19+ description = "Docker compose compatible client to deploy to Rancher";
20+ homepage = "https://docs.rancher.com/rancher/rancher-compose/";
21+ license = licenses.asl20;
22+ platforms = platforms.unix;
23+ maintainers = [maintainers.mic92];
24+ };
25+ };
26+in {
27+ # should point to a version compatible
28+ # with the latest stable release of rancher
29+ rancher-compose = generic {
30+ version = "0.9.2";
31+ sha256 = "1wlsdjaa4j2b3c034hb6zci5h900b1msimmshz5h4g5hiaqb3khq";
32+ };
33+
34+ # for rancher v1.2.0-pre3+
35+ rancher-compose_0_10 = generic {
36+ version = "0.10.0";
37+ sha256 = "17f3ya4qq0dzk4wvhgxp0lh9p8c87kpq7hmh3g21ashzqwmcflxl";
38+ };
39+}