1 { lib, stdenv, fetchFromGitHub, openssl }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "09ax0h4ik3vhvp3s98lic93l3g9f4v1jkr5k6z4g1lvm7s3lrha2";
14 buildInputs = [ openssl ];
17 makeFlagsArray=(CFLAGS="-std=c99 -O3 -g")
21 mkdir -p $out/{lib,include/fastpbkdf2}
23 cp fastpbkdf2.h $out/include/fastpbkdf2
27 description = "A fast PBKDF2-HMAC-{SHA1,SHA256,SHA512} implementation in C";
28 homepage = "https://github.com/ctz/fastpbkdf2";
29 license = licenses.cc0;
30 maintainers = with maintainers; [ ledif ];