cereal: 1.3.0 -> 1.3.2

+19 -23
+19 -23
pkgs/development/libraries/cereal/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, cmake }: 2 - stdenv.mkDerivation rec { 3 pname = "cereal"; 4 - version = "1.3.0"; 5 - 6 - nativeBuildInputs = [ cmake ]; 7 8 src = fetchFromGitHub { 9 owner = "USCiLab"; 10 repo = "cereal"; 11 - rev = "v${version}"; 12 - sha256 = "0hc8wh9dwpc1w1zf5lfss4vg5hmgpblqxbrpp1rggicpx9ar831p"; 13 }; 14 15 - patches = [ 16 - # https://nvd.nist.gov/vuln/detail/CVE-2020-11105 17 - # serialized std::shared_ptr variables cannot always be expected to 18 - # serialize back into their original values. This can have any number of 19 - # consequences, depending on the context within which this manifests. 20 - (fetchpatch { 21 - name = "CVE-2020-11105.patch"; 22 - url = "https://github.com/USCiLab/cereal/commit/f27c12d491955c94583512603bf32c4568f20929.patch"; 23 - sha256 = "CIkbJ7bAN0MXBhTXQdoQKXUmY60/wQvsdn99FaWt31w="; 24 - }) 25 - ]; 26 27 cmakeFlags = [ "-DJUST_INSTALL_CEREAL=yes" ]; 28 29 - meta = with lib; { 30 description = "A header-only C++11 serialization library"; 31 - homepage = "https://uscilab.github.io/cereal/"; 32 - platforms = platforms.all; 33 - license = licenses.mit; 34 }; 35 - }
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , cmake 6 + }: 7 + 8 + stdenv.mkDerivation (finalAttrs: { 9 pname = "cereal"; 10 + version = "1.3.2"; 11 12 src = fetchFromGitHub { 13 owner = "USCiLab"; 14 repo = "cereal"; 15 + rev = "v${finalAttrs.version}"; 16 + hash = "sha256-HapnwM5oSNKuqoKm5x7+i2zt0sny8z8CePwobz1ITQs="; 17 }; 18 19 + nativeBuildInputs = [ cmake ]; 20 21 cmakeFlags = [ "-DJUST_INSTALL_CEREAL=yes" ]; 22 23 + meta = { 24 + homepage = "https://uscilab.github.io/cereal/"; 25 description = "A header-only C++11 serialization library"; 26 + changelog = "https://github.com/USCiLab/cereal/releases/tag/v${finalAttrs.version}"; 27 + license = lib.licenses.bsd3; 28 + maintainers = with lib.maintainers; [ AndersonTorres ]; 29 + platforms = lib.platforms.all; 30 }; 31 + })