diff options
author | Kamil Chmielewski <kamil.chm@gmail.com> | 2016-06-03 15:55:03 +0200 |
---|---|---|
committer | Kamil Chmielewski <kamil.chm@gmail.com> | 2016-06-09 11:21:30 +0200 |
commit | a1f3808e2f6475cc2fabecc870c261966c633ccf (patch) | |
tree | 34fdcb01f3210737dfcc317ada843333326098c4 /pkgs/tools/admin/lxd | |
parent | d765026f99e3e97fb00a77f9d8db84f3774377f6 (diff) | |
download | nixlib-a1f3808e2f6475cc2fabecc870c261966c633ccf.tar nixlib-a1f3808e2f6475cc2fabecc870c261966c633ccf.tar.gz nixlib-a1f3808e2f6475cc2fabecc870c261966c633ccf.tar.bz2 nixlib-a1f3808e2f6475cc2fabecc870c261966c633ccf.tar.lz nixlib-a1f3808e2f6475cc2fabecc870c261966c633ccf.tar.xz nixlib-a1f3808e2f6475cc2fabecc870c261966c633ccf.tar.zst nixlib-a1f3808e2f6475cc2fabecc870c261966c633ccf.zip |
lxd: extracted from goPackages
Diffstat (limited to 'pkgs/tools/admin/lxd')
-rw-r--r-- | pkgs/tools/admin/lxd/default.nix | 36 | ||||
-rw-r--r-- | pkgs/tools/admin/lxd/deps.json | 26 |
2 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/tools/admin/lxd/default.nix b/pkgs/tools/admin/lxd/default.nix new file mode 100644 index 000000000000..e1adb6ccf90d --- /dev/null +++ b/pkgs/tools/admin/lxd/default.nix @@ -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; + }; +} diff --git a/pkgs/tools/admin/lxd/deps.json b/pkgs/tools/admin/lxd/deps.json new file mode 100644 index 000000000000..3e9a811accef --- /dev/null +++ b/pkgs/tools/admin/lxd/deps.json @@ -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" + ] + } +] |