lxd: extracted from goPackages

This commit is contained in:
Kamil Chmielewski
2016-06-03 15:55:03 +02:00
parent d765026f99
commit a1f3808e2f
5 changed files with 198 additions and 37 deletions

View File

@@ -0,0 +1,36 @@
# This file was generated by go2nix.
{ stdenv, lib, pkgconfig, lxc, goPackages, fetchFromGitHub }:
with goPackages;
buildGoPackage rec {
name = "lxd-${version}";
version = "2.0.0.rc4";
rev = "lxd-${version}";
goPackagePath = "github.com/lxc/lxd";
src = fetchFromGitHub {
inherit rev;
owner = "lxc";
repo = "lxd";
sha256 = "1rpyyj6d38d9kmb47dcmy1x41fiacj384yx01yslsrj2l6qxcdjn";
};
goDeps = ./deps.json;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ lxc ];
postInstall = ''
cp go/src/$goPackagePath/scripts/lxd-images $bin/bin
'';
meta = with stdenv.lib; {
description = "Daemon based on liblxc offering a REST API to manage containers";
homepage = https://github.com/lxc/lxd;
license = licenses.asl20;
maintainers = with maintainers; [ globin fpletz ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,26 @@
[
{
"include": "../../../go-modules/libs.json",
"packages": [
"github.com/golang/protobuf",
"github.com/gorilla/websocket",
"github.com/syndtr/gocapability",
"gopkg.in/inconshreveable/log15.v2",
"github.com/gorilla/mux",
"github.com/pborman/uuid",
"golang.org/x/crypto",
"gopkg.in/flosch/pongo2.v3",
"gopkg.in/tomb.v2",
"github.com/olekukonko/tablewriter",
"github.com/mattn/go-sqlite3",
"gopkg.in/lxc/go-lxc.v2",
"gopkg.in/yaml.v2",
"github.com/mattn/go-runewidth",
"github.com/coreos/go-systemd",
"github.com/dustinkirkland/golang-petname",
"github.com/gorilla/context",
"github.com/mattn/go-colorable",
"github.com/gosexy/gettext"
]
}
]