depot/third_party/nixpkgs/pkgs/os-specific/linux/cryptodev/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
770 B
Nix

{ fetchurl, stdenv, kernel ? false }:
stdenv.mkDerivation rec {
pname = "cryptodev-linux-1.9";
name = "${pname}-${kernel.version}";
src = fetchurl {
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}";
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";
};
}