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

28 lines
739 B
Nix
Raw Normal View History

2021-03-01 04:20:00 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook }:
2020-05-28 10:20:00 +01:00
stdenv.mkDerivation rec {
pname = "libfyaml";
2021-03-01 04:20:00 +00:00
version = "0.6";
2020-05-28 10:20:00 +01:00
2021-03-01 04:20:00 +00:00
src = fetchFromGitHub {
owner = "pantoniou";
repo = pname;
rev = "v${version}";
sha256 = "0b1wnalh49rbjykw4bj5k3y1d9yr8k6f0im221bl1gyrwlgw7hp5";
2020-05-28 10:20:00 +01:00
};
2021-03-01 04:20:00 +00:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
postPatch = ''
echo ${version} > .tarball-version
'';
2020-05-28 10:20:00 +01:00
meta = with lib; {
2020-05-28 10:20:00 +01:00
homepage = "https://github.com/pantoniou/libfyaml";
description = "Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}