mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
deepin-anything-module: init
This commit is contained in:
parent
2550a74385
commit
f670b47415
29
pkgs/os-specific/linux/deepin-anything-module/default.nix
Normal file
29
pkgs/os-specific/linux/deepin-anything-module/default.nix
Normal 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)";
|
||||
};
|
||||
}
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user