12 , nix-update-script }:
14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
19 owner = "confluentinc";
22 hash = "sha256-rg4SWa9nIDT6JrnnCDwdiFE1cvpUn0HWHn+bPkXMHQ4=";
25 outputs = [ "dev" "out" ];
27 nativeBuildInputs = [ perl which ];
29 buildInputs = [ boost rdkafka jansson curl avro-c avro-cpp ];
31 makeFlags = [ "GEN_PKG_CONFIG=y" ];
34 patchShebangs configure lds-gen.pl
37 # Has a configure script but it’s not Autoconf so steal some bits from multiple-outputs.sh:
38 setOutputFlags = false;
41 configureFlagsArray+=(
42 "--libdir=''${!outputLib}/lib"
43 "--includedir=''${!outputInclude}/include"
48 installFlagsArray+=("pkgconfigdir=''${!outputDev}/lib/pkgconfig")
51 # Header files get installed with executable bit for some reason; get rid of it.
53 chmod -x ''${!outputInclude}/include/libserdes/*.h
56 passthru.updateScript = nix-update-script { };
59 description = "Schema-based serializer/deserializer C/C++ library with support for Avro and the Confluent Platform Schema Registry";
60 homepage = "https://github.com/confluentinc/libserdes";
61 license = licenses.asl20;
62 maintainers = with maintainers; [ liff ];
63 platforms = platforms.all;