1{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 pname = "libfyaml";
5 version = "0.8";
6
7 src = fetchFromGitHub {
8 owner = "pantoniou";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-b/jRKe23NIVSydoczI+Ax2VjBJLfAEwF8SW61vIDTwA=";
12 };
13
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15
16 outputs = [ "bin" "dev" "out" "man" ];
17
18 doCheck = true;
19
20 preCheck = ''
21 patchShebangs test
22 '';
23
24 meta = with lib; {
25 homepage = "https://github.com/pantoniou/libfyaml";
26 description = "Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite";
27 license = licenses.mit;
28 maintainers = [ maintainers.marsam ];
29 platforms = platforms.all;
30 };
31}