1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 02:24:27 +00:00
nixpkgs/pkgs/os-specific/linux/deepin-anything/default.nix
2019-05-05 13:26:42 -03:00

23 lines
707 B
Nix

{ stdenv, deepin, kernel }:
stdenv.mkDerivation {
pname = "deepin-anything-module";
version = "${deepin.deepin-anything.version}-${kernel.version}";
src = deepin.deepin-anything.modsrc;
nativeBuildInputs = kernel.moduleBuildDependencies;
buildPhase = ''
make -C src/deepin-anything-0.0 kdir=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build
'';
installPhase = ''
install -m 644 -D -t $out/lib/modules/${kernel.modDirVersion}/extra src/deepin-anything-0.0/*.ko
'';
meta = deepin.deepin-anything.meta // {
description = deepin.deepin-anything.meta.description + " (kernel modules)";
badPlatforms = [ "aarch64-linux" ]; # the kernel module is not building
};
}