7 # libkcapi offers multiple tools. They can be disabled for minimization.
16 stdenv.mkDerivation rec {
20 src = fetchFromGitHub {
24 hash = "sha256-xOI29cjhUGUeHLaYIrPA5ZwwCE9lBdZG6kaW0lo1uL8=";
27 nativeBuildInputs = [ autoreconfHook ];
29 # libkcapi looks also for a host c compiler when cross-compiling
30 # otherwise you obtain following error message:
31 # "error: no acceptable C compiler found in $PATH"
33 buildPackages.stdenv.cc
36 enableParallelBuilding = true;
39 lib.optional kcapi-test "--enable-kcapi-test"
40 ++ lib.optional kcapi-speed "--enable-kcapi-speed"
41 ++ lib.optional kcapi-hasher "--enable-kcapi-hasher"
42 ++ lib.optional kcapi-rngapp "--enable-kcapi-rngapp"
43 ++ lib.optional kcapi-encapp "--enable-kcapi-encapp"
44 ++ lib.optional kcapi-dgstapp "--enable-kcapi-dgstapp";
47 homepage = "http://www.chronox.de/libkcapi.html";
48 description = "Linux Kernel Crypto API User Space Interface Library";
49 license = with lib.licenses; [
53 platforms = lib.platforms.linux;
54 maintainers = with lib.maintainers; [