5d26766cbf
Added homepage where missing, where the sources are pulled from: - https://github.com - https://git.sr.ht - https://gitlab.com - https://invent.kde.org - https://codeberg.org - https://gitlab.gnome.org - https://gitlab.freedesktop.org - https://git.FreeBSD.org - https://salsa.debian.org - https://git.tvdr.de - https://git.suckless.org
34 lines
952 B
Nix
34 lines
952 B
Nix
{
|
|
kernel,
|
|
kernelModuleMakeFlags,
|
|
stdenv,
|
|
basiliskii,
|
|
lib,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
name = "${finalAttrs.pname}-${finalAttrs.version}-${kernel.version}";
|
|
pname = "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 = {
|
|
homepage = "https://github.com/kanjitalk755/macemu";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ matthewcroughan ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|