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