2018-08-27 13:24:21 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch }:
|
|
|
|
|
2014-02-10 18:24:25 +00:00
|
|
|
let
|
2018-08-27 13:24:21 +01:00
|
|
|
|
|
|
|
version = "0.2.1";
|
|
|
|
|
|
|
|
# https://github.com/yaml/pyyaml/issues/214
|
|
|
|
p1 = fetchpatch {
|
|
|
|
url = https://github.com/yaml/libyaml/commit/8ee83c0da22fe9aa7dea667be8f899a7e32ffb83.patch;
|
|
|
|
sha256 = "00jh39zww6s4gyhxfmlxwb6lz90nl3p51k5h1qm6z3ymik5vljmz";
|
|
|
|
};
|
|
|
|
p2 = fetchpatch {
|
|
|
|
url = https://github.com/yaml/libyaml/commit/56f4b17221868593d6903ee58d6d679b690cf4df.patch;
|
|
|
|
sha256 = "0najcay1y4kgfpsidj7dnyafnwjbav5jyawhyv215zl9gg3386n0";
|
|
|
|
};
|
|
|
|
|
2014-02-10 18:24:25 +00:00
|
|
|
in
|
2018-08-27 13:24:21 +01:00
|
|
|
|
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 {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://pyyaml.org/download/libyaml/yaml-${version}.tar.gz";
|
2018-08-27 13:24:21 +01:00
|
|
|
sha256 = "1karpcfgacgppa82wm2drcfn2kb6q2wqfykf5nrhy20sci2i2a3q";
|
2010-01-16 10:37:29 +00:00
|
|
|
};
|
|
|
|
|
2018-08-27 13:24:21 +01:00
|
|
|
patches = [ p1 p2 ]; # remove when the next release comes out
|
|
|
|
|
2014-02-10 18:24:25 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-07-06 02:35:28 +01:00
|
|
|
homepage = https://pyyaml.org/;
|
2010-01-16 10:37:29 +00:00
|
|
|
description = "A YAML 1.1 parser and emitter written in C";
|
2014-02-10 18:24:25 +00:00
|
|
|
license = licenses.mit;
|
2018-05-17 08:22:31 +01:00
|
|
|
platforms = platforms.all;
|
2014-09-14 05:33:37 +01:00
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2010-01-16 10:37:29 +00:00
|
|
|
};
|
|
|
|
}
|