Skip to content

Commit

Permalink
vwifi: init at v6.3
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Sappia <[email protected]>
  • Loading branch information
asappia committed Jan 20, 2025
1 parent d803156 commit 05f2327
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions pkgs/by-name/vw/vwifi/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchFromGitHub,
libnl,
pkg-config,
}:

stdenv.mkDerivation rec {
pname = "vwifi";
version = "6.3-unstable-2025-01-20";

src = fetchFromGitHub {
owner = "Raizo62";
repo = "vwifi";
rev = "master";
sha256 = "sha256-FrIgw0MczaCJtPyqcjP3B3Qa6mD9KEJCRQ5QsbD8tgw=";
};

nativeBuildInputs = [ pkg-config ];

buildInputs = [ libnl ];

makeFlags = [
"PREFIX=$(out)"
"DESTDIR=$(out)"
"BINDIR=$(out)/bin"
"MANDIR=$(out)/share/man/man1"
];

env = {
NIX_CFLAGS_COMPILE = toString ([ "-I${libnl.dev}/include/libnl3" ]);
};

# Remove root check from Makefile
postPatch = ''
substituteInPlace Makefile \
--replace 'ifneq ($(EUID),0)' 'ifneq (1,1)' \
--replace '$(DESTDIR)/usr/local/bin' '$(BINDIR)' \
--replace '$(DESTDIR)/usr/local/man/man1' '$(MANDIR)'
'';

meta = with lib; {
description = "Simulate Wi-Fi (802.11) between Linux Virtual Machines";
homepage = "https://github.com/Raizo62/vwifi";
license = licenses.lgpl3Only;
platforms = platforms.linux;
maintainers = [ ];
};
}

0 comments on commit 05f2327

Please sign in to comment.