mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
30 lines
663 B
Nix
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)";
|
||
|
};
|
||
|
}
|
||
|
|