sheep_net: init

Co-authored-by: bloxx12 <charlie@charlieroot.dev>
Co-authored-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
matthewcroughan 2025-07-15 19:16:48 +01:00
parent 9783bde2f4
commit c58a266a1e
3 changed files with 33 additions and 1 deletions

View File

@ -1,7 +1,6 @@
{
config,
lib,
pkgs,
...
}:

View File

@ -0,0 +1,31 @@
{
kernel,
kernelModuleMakeFlags,
stdenv,
basiliskii,
lib,
}:
stdenv.mkDerivation (finalAttrs: {
name = "sheep_net";
version = basiliskii.version;
src = basiliskii.src;
sourceRoot = "${finalAttrs.src.name}/BasiliskII/src/Unix/Linux/NetDriver";
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernelModuleMakeFlags ++ [
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
];
installPhase = ''
runHook preInstall
mkdir -p $out/lib/modules/${kernel.modDirVersion}/drivers/net
install -Dm444 sheep_net.ko $out/lib/modules/${kernel.modDirVersion}/drivers/net/sheep_net.ko
runHook postInstall
'';
meta = {
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ matthewcroughan ];
platforms = lib.platforms.linux;
};
})

View File

@ -599,6 +599,8 @@ in
rr-zen_workaround = callPackage ../development/tools/analysis/rr/zen_workaround.nix { };
sheep-net = callPackage ../os-specific/linux/sheep-net { };
shufflecake = callPackage ../os-specific/linux/shufflecake { };
sysdig = callPackage ../os-specific/linux/sysdig { };