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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
829 B
Nix
Raw Normal View History

2021-01-15 15:45:37 +01:00
{ fetchFromGitHub, lib, stdenv, kernel ? false }:
stdenv.mkDerivation rec {
2021-05-08 13:09:10 +02:00
pname = "cryptodev-linux-1.12";
name = "${pname}-${kernel.version}";
2020-09-11 15:36:56 +02:00
src = fetchFromGitHub {
owner = "cryptodev-linux";
repo = "cryptodev-linux";
rev = pname;
2021-05-08 13:09:10 +02:00
sha256 = "sha256-vJQ10rG5FGbeEOqCUmH/pZ0P77kAW/MtUarywbtIyHw=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
hardeningDisable = [ "pic" ];
KERNEL_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
INSTALL_MOD_PATH = "\${out}";
2017-07-23 17:02:42 +02:00
prefix = "\${out}";
meta = {
description = "Device that allows access to Linux kernel cryptographic drivers";
homepage = "http://cryptodev-linux.org/";
2021-05-08 13:09:10 +02:00
maintainers = with lib.maintainers; [ fortuneteller2k ];
2021-01-15 15:45:37 +01:00
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
};
}