diff options
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/cryptodev/default.nix')
-rw-r--r-- | nixpkgs/pkgs/os-specific/linux/cryptodev/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/cryptodev/default.nix b/nixpkgs/pkgs/os-specific/linux/cryptodev/default.nix new file mode 100644 index 000000000000..c146e18f68d5 --- /dev/null +++ b/nixpkgs/pkgs/os-specific/linux/cryptodev/default.nix @@ -0,0 +1,27 @@ +{ 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"; + }; +} |