3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #211719 from NickCao/cryptodev

linuxPackages.cryptodev: cleanup and fix cross compilation
This commit is contained in:
Nick Cao 2023-01-20 20:03:22 +08:00 committed by GitHub
commit d0637f07e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,9 +14,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = kernel.moduleBuildDependencies;
hardeningDisable = [ "pic" ];
KERNEL_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
INSTALL_MOD_PATH = "\${out}";
prefix = "\${out}";
makeFlags = kernel.makeFlags ++ [
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"INSTALL_MOD_PATH=$(out)"
"prefix=$(out)"
];
meta = {
description = "Device that allows access to Linux kernel cryptographic drivers";