nixpkgs/pkgs/by-name/li/libfyaml/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.1 KiB
Nix
Raw Normal View History

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";
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}";
hash = "sha256-Id5pdFzjA9q67okfESO3LZH8jIz93mVgIEEuBbPjuGI=";
2020-05-28 09:20:00 +00:00
};
2021-03-01 04:20:00 +00:00
nativeBuildInputs = [
autoreconfHook
pkg-config
];
2023-02-08 04:20:00 +00:00
outputs = [
"bin"
"dev"
"out"
"man"
];
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;
};
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";
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
})