mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-15 03:40:22 +00:00
40 lines
817 B
Nix
40 lines
817 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
buildGoModule (finalAttrs: {
|
|
pname = "ops";
|
|
version = "0.1.32";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nanovms";
|
|
repo = "ops";
|
|
rev = finalAttrs.version;
|
|
sha256 = "sha256-ac+17hywzyK7ChCP/nhwTP1WEIZ89+BKX9/YmsPpfg8=";
|
|
};
|
|
|
|
proxyVendor = true; # Doesn't build otherwise
|
|
|
|
vendorHash = "sha256-65VvUy4vGTfZgsXGJVSc/yU5R5MhSKJyMMsvPOCThks=";
|
|
|
|
# Some tests fail
|
|
doCheck = false;
|
|
doInstallCheck = true;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/nanovms/ops/lepton.Version=${finalAttrs.version}"
|
|
];
|
|
|
|
meta = {
|
|
description = "Build and run nanos unikernels";
|
|
homepage = "https://github.com/nanovms/ops";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ ];
|
|
mainProgram = "ops";
|
|
};
|
|
})
|