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