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