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
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
kernel,
|
|
kernelModuleMakeFlags,
|
|
kmod,
|
|
nixosTests,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "fanout";
|
|
version = "unstable-2022-10-17-${kernel.version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bob-linuxtoys";
|
|
repo = "fanout";
|
|
rev = "69b1cc69bf425d1a5f83b4e84d41272f1caa0144";
|
|
hash = "sha256-Q19c88KDFu0A6MejZgKYei9J2693EjRkKtR9hcRcHa0=";
|
|
};
|
|
|
|
preBuild = ''
|
|
substituteInPlace Makefile --replace "modules_install" "INSTALL_MOD_PATH=$out modules_install"
|
|
'';
|
|
|
|
patches = [
|
|
./remove_auto_mknod.patch
|
|
];
|
|
|
|
hardeningDisable = [
|
|
"format"
|
|
"pic"
|
|
];
|
|
|
|
nativeBuildInputs = [ kmod ] ++ kernel.moduleBuildDependencies;
|
|
|
|
makeFlags = kernelModuleMakeFlags ++ [
|
|
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
];
|
|
|
|
passthru.tests = { inherit (nixosTests) fanout; };
|
|
|
|
meta = with lib; {
|
|
description = "Kernel-based publish-subscribe system";
|
|
homepage = "https://github.com/bob-linuxtoys/fanout";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ therishidesai ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|