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