nixpkgs/pkgs/os-specific/linux/deepin-anything-module/default.nix
2024-06-24 00:25:53 +08:00

30 lines
663 B
Nix

{ stdenv
, deepin
, kernel
}:
stdenv.mkDerivation {
pname = "deepin-anything-module";
inherit (deepin.deepin-anything) version src;
sourceRoot = "${deepin.deepin-anything.src.name}/src/kernelmod";
nativeBuildInputs = kernel.moduleBuildDependencies;
buildPhase = ''
runHook preBuild
make kdir=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -D -t $out/lib/modules/${kernel.modDirVersion}/extra *.ko
runHook postInstall
'';
meta = deepin.deepin-anything.meta // {
description = "Deepin Anything file search tool (kernel modules)";
};
}