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";
|
2022-07-31 07:27:50 +00:00
|
|
|
version = "2.5";
|
2018-01-13 10:40:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsyrogit";
|
|
|
|
repo = "zxcvbn-c";
|
|
|
|
rev = "v${version}";
|
2022-07-31 07:27:50 +00:00
|
|
|
sha256 = "sha256-RKqbv0iGkjS7Y7KikqglZ+AK1oiw4G1mB2Zg87tOlbI=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|