commit fb6b73cd52d3fe905a5c52e3675720a4fcada0a3
parent 243414f1287e3ad9bbc753510baa3c9580a7f861
Author: Vincent Demeester <vincent@sbr.pm>
Date: Tue, 12 May 2020 20:04:04 +0200
crc: add crc_driver_libvirt
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/pkgs/crc/default.nix b/pkgs/crc/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
+{ stdenv, lib, buildGoPackage, buildGoModule, fetchFromGitHub, pkg-config, libvirt }:
with lib;
rec {
@@ -49,4 +49,21 @@ rec {
sha256 = "11vy42zb2xzhwsgnz17894gfn03knvp2yr094k3zhly6wkxbwbk3";
bundle = "4.4.3";
};
+ crc_driver_libvirt = buildGoModule rec {
+ pname = "tkn";
+ name = "${pname}-${version}";
+
+ nativeBuildInputs = [ pkg-config ];
+ buildInputs = [ libvirt ];
+
+ subPackages = [ "cmd/machine-driver-libvirt" ];
+ src = fetchFromGitHub {
+ owner = "code-ready";
+ repo = "machine-driver-libvirt";
+ rev = "0.12.7";
+ sha256 = "1mv6wqyzsc24y2gnw0nxmiy52sf3lgfnqkq98v8jdvq3fn6lgacm";
+ };
+ modSha256 = "04nnmsvillavcq1wfjc38r7hgq1mx0zhp4anz6q1j78rdcd6aigy";
+
+ };
}
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -47,6 +47,7 @@ rec {
inherit (pkgs.callPackage ./crc { })
crc_1_9
crc_1_10
+ crc_driver_libvirt
;
crc = crc_1_10;