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 12:41:18 +00:00
|
|
|
pname = "zxcvbn-c";
|
2018-09-28 18:58:55 +00: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 18:58:55 +00: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 01:11:51 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|