depot/third_party/nixpkgs/pkgs/development/libraries/zxcvbn-c/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

24 lines
620 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "zxcvbn-c";
version = "2.5";
src = fetchFromGitHub {
owner = "tsyrogit";
repo = "zxcvbn-c";
rev = "v${version}";
sha256 = "sha256-RKqbv0iGkjS7Y7KikqglZ+AK1oiw4G1mB2Zg87tOlbI=";
};
installPhase = ''
install -D -t $out/lib libzxcvbn.so*
'';
meta = with 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 ];
};
}