2016-06-06 02:28:52 +02:00
|
|
|
{ stdenv, lib, pkgconfig, lxc, buildGoPackage, fetchFromGitHub }:
|
2016-06-03 15:55:03 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "lxd-${version}";
|
2017-05-24 20:29:38 +02:00
|
|
|
version = "2.12";
|
2016-06-03 15:55:03 +02:00
|
|
|
rev = "lxd-${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/lxc/lxd";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "lxc";
|
|
|
|
repo = "lxd";
|
2017-05-24 20:29:38 +02:00
|
|
|
sha256 = "1znqsf6iky21kddvl13bf0lsj65czabwysdbvha24lm16s51mv0p";
|
2016-06-03 15:55:03 +02:00
|
|
|
};
|
|
|
|
|
2016-09-10 12:04:13 +02:00
|
|
|
goDeps = ./deps.nix;
|
2016-06-03 15:55:03 +02: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;
|
|
|
|
};
|
|
|
|
}
|