at 23.11-beta 30 lines 852 B view raw
1{ fetchFromGitHub, lib, stdenv, kernel ? false }: 2 3stdenv.mkDerivation rec { 4 pname = "cryptodev-linux-1.13"; 5 name = "${pname}-${kernel.version}"; 6 7 src = fetchFromGitHub { 8 owner = "cryptodev-linux"; 9 repo = "cryptodev-linux"; 10 rev = pname; 11 hash = "sha256-EzTPoKYa+XWOAa/Dk7ru02JmlymHeXVX7RMmEoJ1OT0="; 12 }; 13 14 nativeBuildInputs = kernel.moduleBuildDependencies; 15 hardeningDisable = [ "pic" ]; 16 17 makeFlags = kernel.makeFlags ++ [ 18 "KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" 19 "INSTALL_MOD_PATH=$(out)" 20 "prefix=$(out)" 21 ]; 22 23 meta = { 24 description = "Device that allows access to Linux kernel cryptographic drivers"; 25 homepage = "http://cryptodev-linux.org/"; 26 maintainers = with lib.maintainers; [ moni ]; 27 license = lib.licenses.gpl2Plus; 28 platforms = lib.platforms.linux; 29 }; 30}