2014-01-05 02:57:21 +01:00
|
|
|
{ fetchurl, stdenv, kernel, onlyHeaders ? false }:
|
2012-09-23 20:50:24 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-13 16:24:38 +02:00
|
|
|
pname = "cryptodev-linux-1.8";
|
2014-01-05 02:57:21 +01:00
|
|
|
name = "${pname}-${kernel.version}";
|
2012-09-23 20:50:24 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-11-29 15:08:29 +01:00
|
|
|
url = "http://download.gna.org/cryptodev-linux/${pname}.tar.gz";
|
2016-08-13 16:24:38 +02:00
|
|
|
sha256 = "0xhkhcdlds9aiz0hams93dv0zkgcn2abaiagdjlqdck7zglvvyk7";
|
2012-09-23 20:50:24 +02:00
|
|
|
};
|
|
|
|
|
2016-08-13 16:24:38 +02:00
|
|
|
hardeningDisable = [ "pic" ];
|
2012-09-23 20:50:24 +02:00
|
|
|
|
2016-08-13 16:24:38 +02:00
|
|
|
KERNEL_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
INSTALL_MOD_PATH = "\${out}";
|
|
|
|
PREFIX = "\${out}";
|
2012-09-23 20:50:24 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Device that allows access to Linux kernel cryptographic drivers";
|
|
|
|
homepage = http://home.gna.org/cryptodev-linux/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2017-03-02 15:52:17 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
broken = !stdenv.lib.versionOlder kernel.version "4.9";
|
2012-09-23 20:50:24 +02:00
|
|
|
};
|
|
|
|
}
|