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