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 { 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , cmake 6 + }: 7 + 8 + stdenv.mkDerivation (finalAttrs: { 3 9 pname = "cereal"; 4 - version = "1.3.0"; 5 - 6 - nativeBuildInputs = [ cmake ]; 10 + version = "1.3.2"; 7 11 8 12 src = fetchFromGitHub { 9 13 owner = "USCiLab"; 10 14 repo = "cereal"; 11 - rev = "v${version}"; 12 - sha256 = "0hc8wh9dwpc1w1zf5lfss4vg5hmgpblqxbrpp1rggicpx9ar831p"; 15 + rev = "v${finalAttrs.version}"; 16 + hash = "sha256-HapnwM5oSNKuqoKm5x7+i2zt0sny8z8CePwobz1ITQs="; 13 17 }; 14 18 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 - ]; 19 + nativeBuildInputs = [ cmake ]; 26 20 27 21 cmakeFlags = [ "-DJUST_INSTALL_CEREAL=yes" ]; 28 22 29 - meta = with lib; { 23 + meta = { 24 + homepage = "https://uscilab.github.io/cereal/"; 30 25 description = "A header-only C++11 serialization library"; 31 - homepage = "https://uscilab.github.io/cereal/"; 32 - platforms = platforms.all; 33 - license = licenses.mit; 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; 34 30 }; 35 - } 31 + })