2018-01-13 11:40:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "zxcvbn-c";
|
2018-09-28 20:58:55 +02:00
|
|
|
version = "2.4";
|
2018-01-13 11:40:45 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsyrogit";
|
|
|
|
repo = "zxcvbn-c";
|
|
|
|
rev = "v${version}";
|
2018-09-28 20:58:55 +02:00
|
|
|
sha256 = "12ksdnpxlqlmg9zhyyk3bspcf0sfj5zk735vr4ry635qi7gzcaas";
|
2018-01-13 11:40:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -t $out/lib libzxcvbn.so*
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/tsyrogit/zxcvbn-c;
|
|
|
|
description = "A C/C++ implementation of the zxcvbn password strength estimation";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ xurei ];
|
|
|
|
};
|
|
|
|
}
|