deepin-anything-module: init

This commit is contained in:
rewine 2024-06-04 17:10:29 +08:00
parent 2550a74385
commit f670b47415
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ 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)";
};
}

View File

@ -336,6 +336,8 @@ in {
cpupower = callPackage ../os-specific/linux/cpupower { };
deepin-anything-module = callPackage ../os-specific/linux/deepin-anything-module { };
ddcci-driver = callPackage ../os-specific/linux/ddcci { };
dddvb = callPackage ../os-specific/linux/dddvb { };