Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = {
description = "Kernel-based publish-subscribe system";
homepage = "https://github.com/bob-linuxtoys/fanout";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ therishidesai ];
platforms = lib.platforms.linux;
};
}