10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
15 owner = "paolostivanin";
18 sha256 = "sha256-Ol/vWaXcbDcy+d8V//fK4SYUpnYmwuYJxkO3/+kqgdM=";
21 postPatch = lib.optionalString stdenv.cc.isClang ''
22 substituteInPlace CMakeLists.txt \
23 --replace "add_link_options(-Wl," "# add_link_options(-Wl,"
26 buildInputs = [ libgcrypt ];
33 description = "C library that generates TOTP and HOTP";
34 homepage = "https://github.com/paolostivanin/libcotp";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ alexbakker ];
37 platforms = platforms.all;