Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 39 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, testers }: 2 3stdenv.mkDerivation (finalAttrs: { 4 pname = "libfyaml"; 5 version = "0.9"; 6 7 src = fetchFromGitHub { 8 owner = "pantoniou"; 9 repo = "libfyaml"; 10 rev = "v${finalAttrs.version}"; 11 hash = "sha256-Id5pdFzjA9q67okfESO3LZH8jIz93mVgIEEuBbPjuGI="; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook pkg-config ]; 15 16 outputs = [ "bin" "dev" "out" "man" ]; 17 18 configureFlags = [ "--disable-network" ]; 19 20 doCheck = true; 21 22 preCheck = '' 23 patchShebangs test 24 ''; 25 26 passthru.tests.pkg-config = testers.hasPkgConfigModules { 27 package = finalAttrs.finalPackage; 28 }; 29 30 meta = with lib; { 31 description = "Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite"; 32 homepage = "https://github.com/pantoniou/libfyaml"; 33 changelog = "https://github.com/pantoniou/libfyaml/releases/tag/v${finalAttrs.version}"; 34 license = licenses.mit; 35 maintainers = [ ]; 36 pkgConfigModules = [ "libfyaml" ]; 37 platforms = platforms.all; 38 }; 39})