2023-10-09 19:29:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, testers }:
|
2020-06-02 18:00:15 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-06-02 18:00:15 +00:00
|
|
|
pname = "libfyaml";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.9";
|
2020-06-02 18:00:15 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pantoniou";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "libfyaml";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-Id5pdFzjA9q67okfESO3LZH8jIz93mVgIEEuBbPjuGI=";
|
2020-06-02 18:00:15 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
outputs = [ "bin" "dev" "out" "man" ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
configureFlags = [ "--disable-network" ];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs test
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests.pkg-config = testers.hasPkgConfigModules {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-02 18:00:15 +00:00
|
|
|
description = "Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/pantoniou/libfyaml";
|
|
|
|
changelog = "https://github.com/pantoniou/libfyaml/releases/tag/v${finalAttrs.version}";
|
2020-06-02 18:00:15 +00:00
|
|
|
license = licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = [ ];
|
2023-10-09 19:29:22 +00:00
|
|
|
pkgConfigModules = [ "libfyaml" ];
|
2020-06-02 18:00:15 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|