1 { lib, stdenv, fetchFromGitHub, kernel, kmod, nixosTests }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2022-10-17-${kernel.version}";
7 src = fetchFromGitHub {
8 owner = "bob-linuxtoys";
10 rev = "69b1cc69bf425d1a5f83b4e84d41272f1caa0144";
11 hash = "sha256-Q19c88KDFu0A6MejZgKYei9J2693EjRkKtR9hcRcHa0=";
15 substituteInPlace Makefile --replace "modules_install" "INSTALL_MOD_PATH=$out modules_install"
19 ./remove_auto_mknod.patch
22 hardeningDisable = [ "format" "pic" ];
24 nativeBuildInputs = [ kmod ] ++ kernel.moduleBuildDependencies;
26 makeFlags = kernel.makeFlags ++ [
27 "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
30 passthru.tests = { inherit (nixosTests) fanout; };
33 description = "Kernel-based publish-subscribe system";
34 homepage = "https://github.com/bob-linuxtoys/fanout";
35 license = licenses.gpl2Only;
36 maintainers = with maintainers; [ therishidesai ];
37 platforms = platforms.linux;