Commit 2811add5aa96

Vincent Demeester <vincent@sbr.pm>
2018-09-15 19:15:38
Package @ehazlett stellar project ๐Ÿš€๐Ÿ‘ผ
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 8e6a706
Changed files (4)
overlays/sbr.overlay.nix
@@ -17,4 +17,7 @@ self: super: {
   cni-plugins = import ../pkgs/cni/plugins.nix {
     inherit (self) stdenv lib fetchFromGitHub go;
   };
+  stellar = import ../pkgs/stellar {
+    inherit (self) stdenv lib buildGoPackage fetchFromGitHub;
+  };
 }
pkgs/stellar/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  name = "stellar-${version}";
+  version = "0.1.0";
+  commit = "ae539df7b6796565a77365252350450113682e0b";
+  rev = "v${version}";
+
+  goPackagePath = "github.com/ehazlett/stellar";
+
+  buildFlagsArray = [''-ldflags=
+    -X github.com/$(REPO)/version.GitCommit=${commit}
+    -X github.com/$(REPO)/version.Build=${version}
+  ''];
+  /*
+  subPackages = [
+    "cmd/etcd"
+    "cmd/etcdctl"
+  ];
+  */
+
+  src = fetchFromGitHub {
+    inherit rev;
+    owner = "ehazlett";
+    repo = "stellar";
+    sha256 = "0gv0z9hf6bh926sga2wadr3bdkigqbl849lhc0552by6c0c8p5dk";
+  };
+
+  meta = {
+    description = "Simplified Container Runtime Cluster";
+    homepage = "https://github.com/ehazlett/stellar";
+    licence = lib.licenses.mit;
+  };
+}
pkgs/default.nix
@@ -22,4 +22,7 @@ rec {
   cni-plugins = import ./cni/plugins.nix {
     inherit (pkgs) stdenv lib fetchFromGitHub go;
   };
+  stellar = import ./stellar {
+    inherit (pkgs) stdenv lib buildGoPackage fetchFromGitHub;
+  };
 }
profiles/containerd.nix
@@ -7,6 +7,7 @@
     cni-plugins
     containerd-edge
     runc-edge
+    stellar
   ];
   virtualisation = {
     containerd = {