2018-07-20 17:44:44 -07:00
|
|
|
{ fetchurl, stdenv, kernel ? false }:
|
2012-09-23 11:50:24 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-07-23 08:02:42 -07:00
|
|
|
pname = "cryptodev-linux-1.9";
|
2014-01-04 17:57:21 -08:00
|
|
|
name = "${pname}-${kernel.version}";
|
2012-09-23 11:50:24 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-07-23 08:02:42 -07:00
|
|
|
urls = [
|
|
|
|
"http://nwl.cc/pub/cryptodev-linux/${pname}.tar.gz"
|
|
|
|
];
|
|
|
|
sha256 = "0l3r8s71vkd0s2h01r7fhqnc3j8cqw4msibrdxvps9hfnd4hnk4z";
|
2012-09-23 11:50:24 -07:00
|
|
|
};
|
|
|
|
|
2016-08-13 07:24:38 -07:00
|
|
|
hardeningDisable = [ "pic" ];
|
2012-09-23 11:50:24 -07:00
|
|
|
|
2016-08-13 07:24:38 -07:00
|
|
|
KERNEL_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
INSTALL_MOD_PATH = "\${out}";
|
2017-07-23 08:02:42 -07:00
|
|
|
prefix = "\${out}";
|
2012-09-23 11:50:24 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Device that allows access to Linux kernel cryptographic drivers";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://cryptodev-linux.org/";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2017-03-02 06:52:17 -08:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2017-09-18 22:37:44 -07:00
|
|
|
broken = !stdenv.lib.versionOlder kernel.version "4.13";
|
2012-09-23 11:50:24 -07:00
|
|
|
};
|
|
|
|
}
|