protobufc: 1.4.1 -> unstable-2023-07-08

This commit is contained in:
Theodore Ni 2023-08-10 00:14:27 -07:00
parent 61f38f6046
commit 71f1732d40
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -1,7 +1,6 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, autoreconfHook , autoreconfHook
, pkg-config , pkg-config
, protobuf , protobuf
@ -11,28 +10,20 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "protobuf-c"; pname = "protobuf-c";
version = "1.4.1"; version = "unstable-2023-07-08";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "protobuf-c"; owner = "protobuf-c";
repo = "protobuf-c"; repo = "protobuf-c";
rev = "refs/tags/v${version}"; rev = "fa86fddbd000316772d1deb5a8d1201fa7599ef7";
hash = "sha256-TJCLzxozuZ8ynrBQ2lKyk03N+QA/lbOwywUjDUdTlbM="; hash = "sha256-pmqZYFREPgSrWPekymTglhtAv6gQR1gP3dOl3hqjYig=";
}; };
patches = [
# https://github.com/protobuf-c/protobuf-c/pull/534
(fetchpatch {
url = "https://github.com/protobuf-c/protobuf-c/commit/a6c9ea5207aeac61c57b446ddf5a6b68308881d8.patch";
hash = "sha256-wTb8+YbvrCrOVpgthI5SJdG/CpQcOzCX4Bv47FPY804=";
})
];
nativeBuildInputs = [ autoreconfHook pkg-config ]; nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ protobuf zlib ]; buildInputs = [ protobuf zlib ];
PROTOC = lib.getExe buildPackages.protobuf; env.PROTOC = lib.getExe buildPackages.protobuf;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/protobuf-c/protobuf-c/"; homepage = "https://github.com/protobuf-c/protobuf-c/";