a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
30 lines
865 B
Nix
30 lines
865 B
Nix
{ fetchFromGitHub, lib, stdenv, kernel ? false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cryptodev-linux-1.12";
|
|
name = "${pname}-${kernel.version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cryptodev-linux";
|
|
repo = "cryptodev-linux";
|
|
rev = pname;
|
|
sha256 = "sha256-vJQ10rG5FGbeEOqCUmH/pZ0P77kAW/MtUarywbtIyHw=";
|
|
};
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
makeFlags = kernel.makeFlags ++ [
|
|
"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/";
|
|
maintainers = with lib.maintainers; [ fortuneteller2k ];
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|