Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
apple-sdk_15,
|
|
buildGoModule,
|
|
darwin,
|
|
fetchFromGitHub,
|
|
fetchpatch2,
|
|
nix-update-script,
|
|
testers,
|
|
vfkit,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "vfkit";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "crc-org";
|
|
repo = "vfkit";
|
|
rev = "v${version}";
|
|
hash = "sha256-+ds9GIa3q2ck4D3sjUHz7e9w00XgD6/jq4L8QkBpCJg=";
|
|
};
|
|
|
|
vendorHash = "sha256-YvrcEPyAvuECUVgQoHKveMoFOeh4M3k5ngsP2w46+vY=";
|
|
|
|
subPackages = [ "cmd/vfkit" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/crc-org/vfkit/pkg/cmdline.gitVersion=${src.rev}"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
darwin.sigtool
|
|
];
|
|
|
|
buildInputs = [
|
|
apple-sdk_15
|
|
];
|
|
|
|
postFixup = ''
|
|
codesign --entitlements vf.entitlements -f -s - $out/bin/vfkit
|
|
'';
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion { package = vfkit; };
|
|
};
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Simple command line tool to start VMs through the macOS Virtualization framework";
|
|
homepage = "https://github.com/crc-org/vfkit";
|
|
changelog = "https://github.com/crc-org/vfkit/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
sarcasticadmin
|
|
phaer
|
|
];
|
|
platforms = lib.platforms.darwin;
|
|
sourceProvenance = [ lib.sourceTypes.fromSource ];
|
|
mainProgram = "vfkit";
|
|
};
|
|
}
|