diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/zxcvbn-c')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/zxcvbn-c/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/zxcvbn-c/default.nix b/nixpkgs/pkgs/development/libraries/zxcvbn-c/default.nix new file mode 100644 index 000000000000..528d545c37c6 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/zxcvbn-c/default.nix @@ -0,0 +1,24 @@ +{ 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 ]; + }; +} |