1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 autoreconfHook,
7 testers,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "libfyaml";
12 version = "0.9";
13
14 src = fetchFromGitHub {
15 owner = "pantoniou";
16 repo = "libfyaml";
17 rev = "v${finalAttrs.version}";
18 hash = "sha256-Id5pdFzjA9q67okfESO3LZH8jIz93mVgIEEuBbPjuGI=";
19 };
20
21 nativeBuildInputs = [
22 autoreconfHook
23 pkg-config
24 ];
25
26 outputs = [
27 "bin"
28 "dev"
29 "out"
30 "man"
31 ];
32
33 configureFlags = [ "--disable-network" ];
34
35 doCheck = true;
36
37 preCheck = ''
38 patchShebangs test
39 '';
40
41 passthru.tests.pkg-config = testers.hasPkgConfigModules {
42 package = finalAttrs.finalPackage;
43 };
44
45 meta = with lib; {
46 description = "Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite";
47 homepage = "https://github.com/pantoniou/libfyaml";
48 changelog = "https://github.com/pantoniou/libfyaml/releases/tag/v${finalAttrs.version}";
49 license = licenses.mit;
50 maintainers = [ ];
51 pkgConfigModules = [ "libfyaml" ];
52 platforms = platforms.all;
53 };
54})