generated from nix-community/nur-packages-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See NixOS/nixpkgs#305868 and NixOS/nixpkgs#334907 for more information. Signed-off-by: micnncim <micnncim@gmail.com>
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# https://github.com/NixOS/nixpkgs/issues/305868 | ||
# https://github.com/NixOS/nixpkgs/pull/334907 | ||
|
||
{ pkgs, lib, fetchurl }: | ||
|
||
pkgs.stdenv.mkDerivation rec { | ||
pname = "vfkit"; | ||
version = "0.5.1"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/crc-org/vfkit/releases/download/v${version}/vfkit"; | ||
hash = "sha256-at+KsvsKO359d4VUvcSuio2ej5hM6//U4Mj/jqXwhEc="; | ||
}; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
install -Dm755 $src $out/bin/vfkit | ||
runHook postInstall | ||
''; | ||
|
||
meta = { | ||
description = "Simple command line tool to start VMs through the macOS Virtualization framework"; | ||
homepage = "https://github.com/crc-org/vfkit"; | ||
license = lib.licenses.asl20; | ||
maintainers = with lib.maintainers; [ sarcasticadmin ]; | ||
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"; | ||
}; | ||
} |