-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb7e224
commit 9203cdf
Showing
2 changed files
with
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ stdenv | ||
, lib | ||
, fetchFromGitHub | ||
, vmnet | ||
}: | ||
stdenv.mkDerivation rec { | ||
pname = "socket_vmnet"; | ||
version = "1.1.4"; | ||
|
||
buildInputs = [ vmnet ]; | ||
|
||
src = fetchFromGitHub { | ||
owner = "lima-vm"; | ||
repo = "socket_vmnet"; | ||
rev = "v${version}"; | ||
hash = "sha256-VC5l9hMFqcdsSuQg2UYP1QFPRByQtoI0jmrLfD7Io/E="; | ||
}; | ||
|
||
preConfigure = '' | ||
export DESTDIR=$out | ||
export PREFIX=/ | ||
export VERSION=${src.rev} | ||
''; | ||
|
||
installPhase = '' | ||
mkdir $out | ||
make install.bin | ||
''; | ||
|
||
meta = with lib; { | ||
description = "vmnet.framework support for unmodified rootless QEMU"; | ||
homepage = "https://github.com/lima-vm/socket_vmnet"; | ||
license = licenses.asl20; | ||
maintainers = with maintainers; [ sysedwinistrator ]; | ||
platforms = platforms.darwin; | ||
}; | ||
} |
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