about summary refs log tree commit diff
path: root/pkgs/applications/virtualization/firectl/default.nix
blob: 64c933a5d32543a3c5721bf406e6535382ee1e45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "firectl";
  # The latest upstream 0.1.0 is incompatible with firecracker
  # v0.1.0. See issue: https://github.com/firecracker-microvm/firectl/issues/82
  version = "unstable-2022-07-12";

  src = fetchFromGitHub {
    owner = "firecracker-microvm";
    repo = pname;
    rev = "ec72798240c0561dea8341d828e8c72bb0cc36c5";
    sha256 = "sha256-RAl1DaeMR7eYYwqVAvm6nib5gEGaM/t7TR8u1IpqOIM=";
  };

  vendorSha256 = "sha256-dXAJOifRtzcTyGzUTFu9+daGAlL/5dQSwcjerkZDuKA=";

  doCheck = false;

  meta = with lib; {
    description = "A command-line tool to run Firecracker microVMs";
    homepage = "https://github.com/firecracker-microvm/firectl";
    license = licenses.asl20;
    platforms = platforms.linux;
    maintainers = with maintainers; [ xrelkd ];
  };
}