blob: 8be7e4f132b1b9b49b7a5f8e19b9cece48ddda68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
stdenv,
fetchFromGitHub,
kernel ? false,
kernelModuleMakeFlags ? [ ],
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cryptodev-linux";
version = "1.14-unstable-2025-11-04";
src = fetchFromGitHub {
owner = "cryptodev-linux";
repo = "cryptodev-linux";
rev = "08644db02d43478f802755903212f5ee506af73b";
hash = "sha256-tYTiyysofO23ApXQbnJF5muTTLv1kKu/nLggGv3ntr4=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
hardeningDisable = [ "pic" ];
makeFlags = kernelModuleMakeFlags ++ [
"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";
homepage = "http://cryptodev-linux.org/";
maintainers = with lib.maintainers; [ moni ];
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
};
})
|