diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-09-15 07:58:52 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-09-15 07:58:52 +0000 |
commit | 9d1daa60832979d5d361dfdac136fb9e5a1af2c5 (patch) | |
tree | 5192dd85903cb092cf7dff0e3403387b3b683d84 /nixpkgs/pkgs/development/libraries/libkcapi | |
parent | 67cdfc7d42f721bf85814af5a0095fb9f9ea455d (diff) | |
parent | f2ea252d23ebc9a5336bf6a61e0644921f64e67c (diff) | |
download | nixlib-9d1daa60832979d5d361dfdac136fb9e5a1af2c5.tar nixlib-9d1daa60832979d5d361dfdac136fb9e5a1af2c5.tar.gz nixlib-9d1daa60832979d5d361dfdac136fb9e5a1af2c5.tar.bz2 nixlib-9d1daa60832979d5d361dfdac136fb9e5a1af2c5.tar.lz nixlib-9d1daa60832979d5d361dfdac136fb9e5a1af2c5.tar.xz nixlib-9d1daa60832979d5d361dfdac136fb9e5a1af2c5.tar.zst nixlib-9d1daa60832979d5d361dfdac136fb9e5a1af2c5.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libkcapi')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libkcapi/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libkcapi/default.nix b/nixpkgs/pkgs/development/libraries/libkcapi/default.nix new file mode 100644 index 000000000000..bee1ac93598c --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libkcapi/default.nix @@ -0,0 +1,53 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, buildPackages + # libkcapi offers multiple tools. They can be disabled for minimization. +, kcapi-test ? true +, kcapi-speed ? true +, kcapi-hasher ? true +, kcapi-rngapp ? true +, kcapi-encapp ? true +, kcapi-dgstapp ? true +}: + +stdenv.mkDerivation rec { + pname = "libkcapi"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "smuellerDD"; + repo = "libkcapi"; + rev = "v${version}"; + hash = "sha256-G/4G8179Gc8RfQfQImOCsBC8WXKK7jQJfUSXm0hYLJ0="; + }; + + nativeBuildInputs = [ autoreconfHook ]; + + # libkcapi looks also for a host c compiler when cross-compiling + # otherwise you obtain following error message: + # "error: no acceptable C compiler found in $PATH" + depsBuildBuild = [ + buildPackages.stdenv.cc + ]; + + enableParallelBuilding = true; + + configureFlags = + lib.optional kcapi-test "--enable-kcapi-test" ++ + lib.optional kcapi-speed "--enable-kcapi-speed" ++ + lib.optional kcapi-hasher "--enable-kcapi-hasher" ++ + lib.optional kcapi-rngapp "--enable-kcapi-rngapp" ++ + lib.optional kcapi-encapp "--enable-kcapi-encapp" ++ + lib.optional kcapi-dgstapp "--enable-kcapi-dgstapp" + ; + + meta = { + homepage = "http://www.chronox.de/libkcapi.html"; + description = "Linux Kernel Crypto API User Space Interface Library"; + license = with lib.licenses; [ bsd3 gpl2Only ]; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ orichter thillux ]; + }; +} |