nixpkgs/pkgs/os-specific/linux/deepin-anything-module/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
663 B
Nix
Raw Normal View History

2024-06-04 09:10:29 +00:00
{ 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)";
};
}