summary refs log tree commit diff
path: root/pkgs/development/libraries/zxcvbn-c/default.nix
blob: 7a524e72318fe49e25dc8038095bd1065d034f1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
  pname = "zxcvbn-c";
  version = "2.4";

  src = fetchFromGitHub {
    owner = "tsyrogit";
    repo = "zxcvbn-c";
    rev = "v${version}";
    sha256 = "12ksdnpxlqlmg9zhyyk3bspcf0sfj5zk735vr4ry635qi7gzcaas";
  };

  installPhase = ''
    install -D -t $out/lib libzxcvbn.so*
  '';

  meta = with stdenv.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 ];
  };
}