summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/virtualization/ops/default.nix
blob: 484eeeb41c1186984b66559f712340d17803b9a7 (plain)
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
28
29
30
31
32
33
34
35
36
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
  pname = "ops";
  version = "0.1.32";

  src = fetchFromGitHub {
    owner = "nanovms";
    repo = pname;
    rev = version;
    sha256 = "sha256-ac+17hywzyK7ChCP/nhwTP1WEIZ89+BKX9/YmsPpfg8=";
  };

  proxyVendor = true; # Doesn't build otherwise

  vendorSha256 = "sha256-65VvUy4vGTfZgsXGJVSc/yU5R5MhSKJyMMsvPOCThks=";

  # Some tests fail
  doCheck = false;
  doInstallCheck = true;

  ldflags = [
    "-s" "-w"
    "-X github.com/nanovms/ops/lepton.Version=${version}"
  ];

  meta = with lib; {
    description = "Build and run nanos unikernels";
    homepage = "https://github.com/nanovms/ops";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ dit7ya ];
  };
}