mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
Merge pull request #210608 from r-ryantm/auto-update/libcotp
libcotp: 1.2.8 -> 2.0.0
This commit is contained in:
commit
5fb9ccbd5b
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue