at 22.05-pre 27 lines 775 B view raw
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 hardeningDisable = [ "pic" ]; 15 16 KERNEL_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; 17 INSTALL_MOD_PATH = "\${out}"; 18 prefix = "\${out}"; 19 20 meta = { 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; 26 }; 27}