nixpkgs/pkgs/os-specific/linux/cryptodev/default.nix

27 lines
715 B
Nix
Raw Normal View History

2021-01-15 14:45:37 +00:00
{ fetchFromGitHub, lib, stdenv, kernel ? false }:
stdenv.mkDerivation rec {
2020-09-11 14:36:56 +01:00
pname = "cryptodev-linux-1.11";
name = "${pname}-${kernel.version}";
2020-09-11 14:36:56 +01:00
src = fetchFromGitHub {
owner = "cryptodev-linux";
repo = "cryptodev-linux";
rev = pname;
sha256 = "1ky850qiyacq8p3lng7n3w6h3x2clqrz4lkv2cv3psy92mg9pvc9";
};
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/";
2021-01-15 14:45:37 +00:00
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
};
}