mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
914e0e594c
https://github.com/NixOS/nixpkgs/pull/17254#issuecomment-245295541 * update docs to describe `deps.nix` * include goDeps in nix-shell GOPATH * NixOS 16.09 rel notes about replacing goPackages
30 lines
727 B
Nix
30 lines
727 B
Nix
{ stdenv, lib, pkgconfig, lxc, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
name = "lxd-${version}";
|
|
version = "2.0.2";
|
|
rev = "lxd-${version}";
|
|
|
|
goPackagePath = "github.com/lxc/lxd";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "lxc";
|
|
repo = "lxd";
|
|
sha256 = "1rs9g1snjymg6pjz5bj77zk5wbs0w8xmrfxzqs32w6zr1dxhf9hs";
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
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;
|
|
};
|
|
}
|