Skip to content

Commit

Permalink
socket_vmnet: init at 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
sysedwinistrator committed Mar 21, 2024
1 parent eb7e224 commit 9203cdf
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkgs/by-name/so/socket_vmnet/package.nix
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;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 9203cdf

Please sign in to comment.