3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/cryptodev/default.nix

28 lines
770 B
Nix
Raw Normal View History

{ fetchurl, stdenv, kernel ? false }:
stdenv.mkDerivation rec {
2017-07-23 16:02:42 +01:00
pname = "cryptodev-linux-1.9";
name = "${pname}-${kernel.version}";
src = fetchurl {
2017-07-23 16:02:42 +01:00
urls = [
"http://nwl.cc/pub/cryptodev-linux/${pname}.tar.gz"
];
sha256 = "0l3r8s71vkd0s2h01r7fhqnc3j8cqw4msibrdxvps9hfnd4hnk4z";
};
hardeningDisable = [ "pic" ];
KERNEL_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
INSTALL_MOD_PATH = "\${out}";
2017-07-23 16:02:42 +01:00
prefix = "\${out}";
meta = {
description = "Device that allows access to Linux kernel cryptographic drivers";
homepage = "http://cryptodev-linux.org/";
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux;
broken = !stdenv.lib.versionOlder kernel.version "4.13";
};
}