12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-kraflUsnsUBCwCN8vEVaPExSBF0cMdser2UwXpAGhlw=";
24 ./0001-Do-not-require-wget-and-unzip.patch
28 lib.optional (stdenv.hostPlatform.isStatic) "-DBUILD_SHARED_LIBS=OFF"
29 # upstream turns BUILD_TESTING=OFF by default and doesn't honor cmake's default (=ON)
30 ++ lib.optional (finalAttrs.finalPackage.doCheck) "-DBUILD_TESTING=ON"
31 ++ lib.optional withDocs "-DBUILD_DOCUMENTATION=ON";
33 outputs = [ "out" ] ++ lib.optional withDocs "doc";
39 ++ lib.optionals withDocs [
46 checkInputs = [ gtest ];
49 homepage = "https://github.com/eProsima/Fast-CDR";
50 description = "Serialization library for OMG's Common Data Representation (CDR)";
52 A C++ library that provides two serialization mechanisms. One is the
53 standard CDR serialization mechanism, while the other is a faster
54 implementation that modifies the standard.
56 license = licenses.asl20;
57 maintainers = with maintainers; [ panicgh ];
58 platforms = platforms.unix;