3
0
Fork 0
forked from mirrors/nixpkgs
TredwellGit 2020-11-05 07:34:56 +00:00 committed by Alyssa Ross
parent 971aef5e08
commit b5ca1a1731

View file

@ -1,20 +1,13 @@
{ stdenv, fetchurl, fetchpatch, cmake }:
{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
name = "json-c-0.14";
src = fetchurl {
url = "https://s3.amazonaws.com/json-c_releases/releases/${name}-nodoc.tar.gz";
sha256 = "1yia8417qljmczs9w3rn4c4i2p2iywq098pgrj11s81599j4x4cr";
};
pname = "json-c";
version = "0.15";
patches = [
# https://nvd.nist.gov/vuln/detail/CVE-2020-12762
(fetchpatch {
name = "CVE-2020-12762.patch";
url = "https://github.com/json-c/json-c/commit/5d6fa331418d49f1bd488553fd1cfa9ab023fabb.patch";
sha256 = "0aar7kgbycqxnhh0lrr61adfbb903nbapalhs5i6h8anxwy1ylcm";
})
];
src = fetchurl {
url = "https://s3.amazonaws.com/json-c_releases/releases/${pname}-${version}.tar.gz";
sha256 = "1im484iz08j3gmzpw07v16brwq46pxxj65i996kkp2vivcfhmn5q";
};
outputs = [ "out" "dev" ];