nixpkgs/pkgs/development/libraries/libfyaml/default.nix

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

40 lines
1.1 KiB
Nix
Raw Normal View History

2023-09-26 06:20:00 +02:00
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, testers }:
2020-05-28 11:20:00 +02:00
2023-09-26 06:20:00 +02:00
stdenv.mkDerivation (finalAttrs: {
2020-05-28 11:20:00 +02:00
pname = "libfyaml";
version = "0.9";
2020-05-28 11:20:00 +02:00
2021-03-01 05:20:00 +01:00
src = fetchFromGitHub {
owner = "pantoniou";
2023-09-26 06:20:00 +02:00
repo = "libfyaml";
rev = "v${finalAttrs.version}";
hash = "sha256-Id5pdFzjA9q67okfESO3LZH8jIz93mVgIEEuBbPjuGI=";
2020-05-28 11:20:00 +02:00
};
2021-03-01 05:20:00 +01:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
2023-02-08 05:20:00 +01:00
outputs = [ "bin" "dev" "out" "man" ];
configureFlags = [ "--disable-network" ];
2021-04-03 11:12:50 +02:00
doCheck = true;
preCheck = ''
patchShebangs test
'';
2023-09-26 06:20:00 +02:00
passthru.tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
meta = with lib; {
2020-05-28 11:20:00 +02: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 11:20:00 +02:00
license = licenses.mit;
maintainers = [ maintainers.marsam ];
2023-09-26 06:20:00 +02:00
pkgConfigModules = [ "libfyaml" ];
2020-05-28 11:20:00 +02:00
platforms = platforms.all;
};
2023-09-26 06:20:00 +02:00
})