summary refs log tree commit diff
path: root/pkgs/applications/virtualization/rancher-compose
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@higgsboson.tk>2016-10-12 18:19:46 +0200
committerJörg Thalheim <joerg@higgsboson.tk>2016-10-15 22:06:33 +0200
commitd60b74e7db545a2d64ed255c4a0093843b8653e9 (patch)
tree9f62191c0322a34b1d0720bcfed8017f2dcd2698 /pkgs/applications/virtualization/rancher-compose
parentbfc1ec2807f65cb83471ea983ff05da136ff2866 (diff)
downloadnixlib-d60b74e7db545a2d64ed255c4a0093843b8653e9.tar
nixlib-d60b74e7db545a2d64ed255c4a0093843b8653e9.tar.gz
nixlib-d60b74e7db545a2d64ed255c4a0093843b8653e9.tar.bz2
nixlib-d60b74e7db545a2d64ed255c4a0093843b8653e9.tar.lz
nixlib-d60b74e7db545a2d64ed255c4a0093843b8653e9.tar.xz
nixlib-d60b74e7db545a2d64ed255c4a0093843b8653e9.tar.zst
nixlib-d60b74e7db545a2d64ed255c4a0093843b8653e9.zip
rancher-compose: init at 0.10.0
Diffstat (limited to 'pkgs/applications/virtualization/rancher-compose')
-rw-r--r--pkgs/applications/virtualization/rancher-compose/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/rancher-compose/default.nix b/pkgs/applications/virtualization/rancher-compose/default.nix
new file mode 100644
index 000000000000..5e2b1cef5d89
--- /dev/null
+++ b/pkgs/applications/virtualization/rancher-compose/default.nix
@@ -0,0 +1,39 @@
+{ lib, buildGoPackage, fetchFromGitHub }:
+
+let
+  generic = { version, sha256 }: buildGoPackage rec {
+    name = "rancher-compose-${version}";
+
+    goPackagePath = "github.com/rancher/rancher-compose";
+
+    src = fetchFromGitHub {
+      owner = "rancher";
+      repo = "rancher-compose";
+      rev = "v${version}";
+      inherit sha256;
+    };
+
+    excludedPackages = "scripts";
+
+    meta = with lib; {
+      description = "Docker compose compatible client to deploy to Rancher";
+      homepage = "https://docs.rancher.com/rancher/rancher-compose/";
+      license = licenses.asl20;
+      platforms = platforms.unix;
+      maintainers = [maintainers.mic92];
+    };
+  };
+in {
+  # should point to a version compatible
+  # with the latest stable release of rancher
+  rancher-compose = generic {
+    version = "0.9.2";
+    sha256 = "1wlsdjaa4j2b3c034hb6zci5h900b1msimmshz5h4g5hiaqb3khq";
+  };
+
+  # for rancher v1.2.0-pre3+
+  rancher-compose_0_10 = generic {
+    version = "0.10.0";
+    sha256 = "17f3ya4qq0dzk4wvhgxp0lh9p8c87kpq7hmh3g21ashzqwmcflxl";
+  };
+}