Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
917 B · 36 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637{ lib, stdenv, fetchFromGitHub, kernel ? false, kernelModuleMakeFlags ? [ ],}:
stdenv.mkDerivation (finalAttrs: { pname = "cryptodev-linux"; version = "1.14";
src = fetchFromGitHub { owner = "cryptodev-linux"; repo = "cryptodev-linux"; rev = "cryptodev-linux-${finalAttrs.version}"; hash = "sha256-N7fGOMEWrb/gm1MDiJgq2QyTOni6n9w2H52baXmRA1g="; };
nativeBuildInputs = kernel.moduleBuildDependencies; hardeningDisable = [ "pic" ];
makeFlags = kernelModuleMakeFlags ++ [ "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; [ moni ]; license = lib.licenses.gpl2Plus; platforms = lib.platforms.linux; };})