-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package request: vfkit #306179
Comments
I can confirm this is required by podman 5 on macOS in order to start the virtual machine |
The reason I said "apparently" was because although I had observed that I needed to install |
I know the PR is closed but it's worth mentioning it didn't work. |
yeah, I could build it with our Darwin SDK, but it seems to disable too many features to make it usable. I think you can use the following: # pkgs/by-name/vf/vfkit/package.nix
{ lib, fetchurl, stdenvNoCC, testers }:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "vfkit";
version = "0.5.1";
src = fetchurl {
url = "https://github.com/crc-org/vfkit/releases/download/v${finalAttrs.version}/vfkit";
hash = "sha256-at+KsvsKO359d4VUvcSuio2ej5hM6//U4Mj/jqXwhEc=";
};
dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm755 $src $out/bin/vfkit
runHook postInstall
'';
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
};
};
meta = {
description = "Simple command line tool to start VMs through virtualization framework";
homepage = "https://github.com/crc-org/vfkit";
license = lib.licenses.asl20;
maintainers = [ ];
platforms = lib.platforms.darwin;
# Source build will be possible after darwin SDK 12.0 bump
# https://github.com/NixOS/nixpkgs/pull/229210
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
mainProgram = "vfkit";
};
}) |
Could you elaborate a bit on which features needed to be disabled and why, @marsam? |
@marsam : I just hit this problem and found this issue. Is there a specific reason that specific package was not yet submitted upstream, or could I (beginner) do that? |
Project description
vfkit - Simple command line tool to start VMs through macOS Virtualization Framework
This is (apparently) required by Podman 5.0.x and Darwin. See: #305868
Metadata
The text was updated successfully, but these errors were encountered: