1{ fetchFromGitHub, lib, stdenv, kernel ? false }:
2
3stdenv.mkDerivation rec {
4 pname = "cryptodev-linux-1.12";
5 name = "${pname}-${kernel.version}";
6
7 src = fetchFromGitHub {
8 owner = "cryptodev-linux";
9 repo = "cryptodev-linux";
10 rev = pname;
11 sha256 = "sha256-vJQ10rG5FGbeEOqCUmH/pZ0P77kAW/MtUarywbtIyHw=";
12 };
13
14 nativeBuildInputs = kernel.moduleBuildDependencies;
15 hardeningDisable = [ "pic" ];
16
17 KERNEL_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
18 INSTALL_MOD_PATH = "\${out}";
19 prefix = "\${out}";
20
21 meta = {
22 description = "Device that allows access to Linux kernel cryptographic drivers";
23 homepage = "http://cryptodev-linux.org/";
24 maintainers = with lib.maintainers; [ fortuneteller2k ];
25 license = lib.licenses.gpl2Plus;
26 platforms = lib.platforms.linux;
27 };
28}