Files
nixpkgs/pkgs/by-name/vw/vwifi/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
libnl,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "vwifi";
version = "6.3-unstable-2025-02-04";
src = fetchFromGitHub {
owner = "Raizo62";
repo = "vwifi";
rev = "18c320b1b92bea241ad801d05e0f2b4748478fd9";
hash = "sha256-rlwBO5/xyr8KjvacxYt7dBrV1noXhwBJaElGhmM/eWU=";
};
patches = [ ./makefile.patch ];
buildInputs = [
libnl
];
nativeBuildInputs = [
pkg-config
];
doInstallCheck = true;
installCheckPhase = ''
checksRan=0
for bin in $out/bin/vwifi-*; do
echo -n "$(basename -- "$bin"): "
$bin --version 2>&1 | grep -F "${lib.versions.majorMinor finalAttrs.version}"
checksRan=$((checksRan+1))
done
[ $checksRan -gt 0 ] || exit 1
'';
meta = {
description = "Simulate Wi-Fi (802.11) between Linux Virtual Machines";
homepage = "https://github.com/Raizo62/vwifi";
license = lib.licenses.lgpl3Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ asappia ];
};
})