nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

libyaml: actually use 0.2.2

The archive that was used turned out to be incorrect.
https://github.com/yaml/pyyaml/issues/320

By now a correct tarball has been uploaded but in order
to prevent issues like these we fetch now instead from GitHub.

+11 -4
+11 -4
pkgs/development/libraries/libyaml/default.nix
··· 1 - { stdenv, fetchurl }: 1 + { stdenv 2 + , fetchFromGitHub 3 + , autoreconfHook 4 + }: 2 5 3 6 stdenv.mkDerivation rec { 4 7 pname = "libyaml"; 5 8 version = "0.2.2"; 6 9 7 - src = fetchurl { 8 - url = "https://pyyaml.org/download/libyaml/yaml-${version}.tar.gz"; 9 - sha256 = "1karpcfgacgppa82wm2drcfn2kb6q2wqfykf5nrhy20sci2i2a3q"; 10 + src = fetchFromGitHub { 11 + owner = "yaml"; 12 + repo = "libyaml"; 13 + rev = version; 14 + sha256 = "0839nqcmxjzfgjn39j7740pnlsgmvngpkamiw1lfy1qlcqyc3r4v"; 10 15 }; 16 + 17 + nativeBuildInputs = [ autoreconfHook ]; 11 18 12 19 meta = with stdenv.lib; { 13 20 homepage = https://pyyaml.org/;