diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2022-08-21 11:54:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 11:54:41 +0200 |
commit | a2627bae2f7f60c048a95802f787b35b4780d32a (patch) | |
tree | 0a0c30a1facb8d047be59ad63c80efea338f9ab5 /pkgs/applications/virtualization | |
parent | 9ff4cd7b75655c0de1f3f156fe23560043fc0ee2 (diff) | |
parent | e33b9158e32cb64983e7b3ff55378ada702ef0c8 (diff) |
Merge pull request #185193 from dit7ya/ops
ops: init at 0.1.32
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r-- | pkgs/applications/virtualization/ops/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/ops/default.nix b/pkgs/applications/virtualization/ops/default.nix new file mode 100644 index 0000000000000..484eeeb41c118 --- /dev/null +++ b/pkgs/applications/virtualization/ops/default.nix @@ -0,0 +1,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 ]; + }; +} |