2016-06-06 00:28:52 +00:00
|
|
|
{ stdenv, lib, pkgconfig, lxc, buildGoPackage, fetchFromGitHub }:
|
2016-06-03 13:55:03 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "lxd-${version}";
|
2016-06-19 19:02:07 +00:00
|
|
|
version = "2.0.2";
|
2016-06-03 13:55:03 +00:00
|
|
|
rev = "lxd-${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/lxc/lxd";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "lxc";
|
|
|
|
repo = "lxd";
|
2016-06-19 19:02:07 +00:00
|
|
|
sha256 = "1rs9g1snjymg6pjz5bj77zk5wbs0w8xmrfxzqs32w6zr1dxhf9hs";
|
2016-06-03 13:55:03 +00:00
|
|
|
};
|
|
|
|
|
2016-09-10 10:04:13 +00:00
|
|
|
goDeps = ./deps.nix;
|
2016-06-03 13:55:03 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ lxc ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|