mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
803 B
Nix
38 lines
803 B
Nix
{ 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
|
|
|
|
vendorHash = "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 ];
|
|
mainProgram = "ops";
|
|
};
|
|
}
|