Merge pull request #210608 from r-ryantm/auto-update/libcotp

libcotp: 1.2.8 -> 2.0.0

authored by Mario Rodas and committed by GitHub 5fb9ccbd 21453aa6

+10 -4
+10 -4
pkgs/development/libraries/libcotp/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, cmake, pkg-config, libgcrypt, libbaseencode }: 1 + { stdenv, lib, fetchFromGitHub, cmake, pkg-config, libgcrypt }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libcotp"; 5 - version = "1.2.8"; 5 + version = "2.0.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "paolostivanin"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-XWrLtWoYIEyGSwc1Qq1Q2NTn0USm1ekVyLWuwvppOZE="; 11 + sha256 = "sha256-99Uw/BMk2bLj+/FZd7MwrRw62XcCroO9yNWdtH5AFpE="; 12 12 }; 13 13 14 - buildInputs = [ libbaseencode libgcrypt ]; 14 + postPatch = lib.optionalString stdenv.cc.isClang '' 15 + substituteInPlace CMakeLists.txt \ 16 + --replace "add_link_options(-Wl," "# add_link_options(-Wl," 17 + ''; 18 + 19 + buildInputs = [ libgcrypt ]; 15 20 nativeBuildInputs = [ cmake pkg-config ]; 16 21 17 22 meta = with lib; { ··· 19 24 homepage = "https://github.com/paolostivanin/libcotp"; 20 25 license = licenses.asl20; 21 26 maintainers = with maintainers; [ alexbakker ]; 27 + platforms = platforms.all; 22 28 }; 23 29 }