2021-01-15 14:45:37 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv, kernel ? false }:
|
2012-09-23 19:50:24 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-08 12:09:10 +01:00
|
|
|
pname = "cryptodev-linux-1.12";
|
2014-01-05 01:57:21 +00:00
|
|
|
name = "${pname}-${kernel.version}";
|
2012-09-23 19:50:24 +01:00
|
|
|
|
2020-09-11 14:36:56 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cryptodev-linux";
|
|
|
|
repo = "cryptodev-linux";
|
|
|
|
rev = pname;
|
2021-05-08 12:09:10 +01:00
|
|
|
sha256 = "sha256-vJQ10rG5FGbeEOqCUmH/pZ0P77kAW/MtUarywbtIyHw=";
|
2012-09-23 19:50:24 +01:00
|
|
|
};
|
|
|
|
|
2016-08-13 15:24:38 +01:00
|
|
|
hardeningDisable = [ "pic" ];
|
2012-09-23 19:50:24 +01:00
|
|
|
|
2016-08-13 15:24:38 +01:00
|
|
|
KERNEL_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
INSTALL_MOD_PATH = "\${out}";
|
2017-07-23 16:02:42 +01:00
|
|
|
prefix = "\${out}";
|
2012-09-23 19:50:24 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Device that allows access to Linux kernel cryptographic drivers";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://cryptodev-linux.org/";
|
2021-05-08 12:09:10 +01:00
|
|
|
maintainers = with lib.maintainers; [ fortuneteller2k ];
|
2021-01-15 14:45:37 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2012-09-23 19:50:24 +01:00
|
|
|
};
|
|
|
|
}
|