Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 812 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6buildGoModule rec { 7 pname = "ops"; 8 version = "0.1.32"; 9 10 src = fetchFromGitHub { 11 owner = "nanovms"; 12 repo = "ops"; 13 rev = version; 14 sha256 = "sha256-ac+17hywzyK7ChCP/nhwTP1WEIZ89+BKX9/YmsPpfg8="; 15 }; 16 17 proxyVendor = true; # Doesn't build otherwise 18 19 vendorHash = "sha256-65VvUy4vGTfZgsXGJVSc/yU5R5MhSKJyMMsvPOCThks="; 20 21 # Some tests fail 22 doCheck = false; 23 doInstallCheck = true; 24 25 ldflags = [ 26 "-s" 27 "-w" 28 "-X github.com/nanovms/ops/lepton.Version=${version}" 29 ]; 30 31 meta = with lib; { 32 description = "Build and run nanos unikernels"; 33 homepage = "https://github.com/nanovms/ops"; 34 license = licenses.mit; 35 platforms = platforms.linux; 36 maintainers = with maintainers; [ dit7ya ]; 37 mainProgram = "ops"; 38 }; 39}