From 9203cdff518256349cf805526092d7a53251c082 Mon Sep 17 00:00:00 2001 From: Edwin Mackenzie-Owen Date: Wed, 14 Feb 2024 12:15:37 +0100 Subject: [PATCH] socket_vmnet: init at 1.1.4 --- pkgs/by-name/so/socket_vmnet/package.nix | 37 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/by-name/so/socket_vmnet/package.nix 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 { };