diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-01-14 14:03:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 14:03:09 -0500 |
commit | 5fb9ccbd5bf373994d1e0bc45e0e0cfae27465bf (patch) | |
tree | 7c98c68820314956c67f6063152a0b499f01407f | |
parent | 21453aa6d889f0a311a086d68a1dc8a5944cea8d (diff) | |
parent | 24ad2752002b829a68b5e50067d30a7f0a26d57d (diff) |
Merge pull request #210608 from r-ryantm/auto-update/libcotp
libcotp: 1.2.8 -> 2.0.0
-rw-r--r-- | pkgs/development/libraries/libcotp/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libcotp/default.nix b/pkgs/development/libraries/libcotp/default.nix index 980b01549a25..4baa712b6803 100644 --- a/pkgs/development/libraries/libcotp/default.nix +++ b/pkgs/development/libraries/libcotp/default.nix @@ -1,17 +1,22 @@ -{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libgcrypt, libbaseencode }: +{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libgcrypt }: stdenv.mkDerivation rec { pname = "libcotp"; - version = "1.2.8"; + version = "2.0.0"; src = fetchFromGitHub { owner = "paolostivanin"; repo = pname; rev = "v${version}"; - sha256 = "sha256-XWrLtWoYIEyGSwc1Qq1Q2NTn0USm1ekVyLWuwvppOZE="; + sha256 = "sha256-99Uw/BMk2bLj+/FZd7MwrRw62XcCroO9yNWdtH5AFpE="; }; - buildInputs = [ libbaseencode libgcrypt ]; + postPatch = lib.optionalString stdenv.cc.isClang '' + substituteInPlace CMakeLists.txt \ + --replace "add_link_options(-Wl," "# add_link_options(-Wl," + ''; + + buildInputs = [ libgcrypt ]; nativeBuildInputs = [ cmake pkg-config ]; meta = with lib; { @@ -19,5 +24,6 @@ stdenv.mkDerivation rec { homepage = "https://github.com/paolostivanin/libcotp"; license = licenses.asl20; maintainers = with maintainers; [ alexbakker ]; + platforms = platforms.all; }; } |