lol
1{ stdenv, fetchurl, fetchpatch }:
2let
3 version = "0.1.6";
4in
5stdenv.mkDerivation {
6 name = "libyaml-${version}";
7
8 src = fetchurl {
9 url = "http://pyyaml.org/download/libyaml/yaml-${version}.tar.gz";
10 sha256 = "0j9731s5zjb8mjx7wzf6vh7bsqi38ay564x6s9nri2nh9cdrg9kx";
11 };
12
13 patches = [(fetchpatch {
14 name = "CVE-2014-9130.diff";
15 url = "http://bitbucket.org/xi/libyaml/commits/2b915675/raw/";
16 sha256 = "1vrkga2wk060wccg61c2mj5prcyv181qikgdfi1z4hz8ygmpvl04";
17 })];
18
19 meta = with stdenv.lib; {
20 homepage = http://pyyaml.org/;
21 description = "A YAML 1.1 parser and emitter written in C";
22 license = licenses.mit;
23 platforms = platforms.unix;
24 maintainers = with maintainers; [ wkennington ];
25 };
26}