2014-12-10 18:26:09 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch }:
|
2014-02-10 18:24:25 +00:00
|
|
|
let
|
2014-04-01 10:30:16 +01:00
|
|
|
version = "0.1.6";
|
2014-02-10 18:24:25 +00:00
|
|
|
in
|
2010-01-16 10:37:29 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-02-10 18:24:25 +00:00
|
|
|
name = "libyaml-${version}";
|
2010-01-16 10:37:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-10 18:24:25 +00:00
|
|
|
url = "http://pyyaml.org/download/libyaml/yaml-${version}.tar.gz";
|
2014-04-01 10:30:16 +01:00
|
|
|
sha256 = "0j9731s5zjb8mjx7wzf6vh7bsqi38ay564x6s9nri2nh9cdrg9kx";
|
2010-01-16 10:37:29 +00:00
|
|
|
};
|
|
|
|
|
2014-12-10 18:26:09 +00:00
|
|
|
patches = [(fetchpatch {
|
|
|
|
name = "CVE-2014-9130.diff";
|
|
|
|
url = "http://bitbucket.org/xi/libyaml/commits/2b915675/raw/";
|
|
|
|
sha256 = "1vrkga2wk060wccg61c2mj5prcyv181qikgdfi1z4hz8ygmpvl04";
|
|
|
|
})];
|
|
|
|
|
2014-02-10 18:24:25 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-01-16 10:37:29 +00:00
|
|
|
homepage = http://pyyaml.org/;
|
|
|
|
description = "A YAML 1.1 parser and emitter written in C";
|
2014-02-10 18:24:25 +00:00
|
|
|
license = licenses.mit;
|
2014-09-14 05:33:37 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2010-01-16 10:37:29 +00:00
|
|
|
};
|
|
|
|
}
|