diff --git a/pkgs/by-name/so/socket_vmnet/package.nix b/pkgs/by-name/so/socket_vmnet/package.nix new file mode 100644 index 0000000000000..a11b4d1c89b62 --- /dev/null +++ b/pkgs/by-name/so/socket_vmnet/package.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e88689aa7e508..2fba7abcb5dd6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6322,6 +6322,10 @@ with pkgs; snowcat = callPackage ../tools/security/snowcat { }; + socket_vmnet = callPackage ../by-name/so/socket_vmnet/package.nix { + inherit (darwin.apple_sdk.frameworks) vmnet; + }; + socklog = callPackage ../tools/system/socklog { }; soju = callPackage ../applications/networking/soju { };