2020-09-26 16:19:40 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub
|
|
|
|
, libyaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcyaml";
|
2022-02-12 12:42:55 +00:00
|
|
|
version = "1.3.1";
|
2020-09-26 16:19:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tlsa";
|
|
|
|
repo = "libcyaml";
|
|
|
|
rev = "v${version}";
|
2022-02-12 12:42:55 +00:00
|
|
|
sha256 = "sha256-ntgTgIJ3u1IbR/eYOgwmgR9Jvx28P+l44wAMlBEcbj8=";
|
2020-09-26 16:19:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libyaml ];
|
|
|
|
|
|
|
|
makeFlags = [ "VARIANT=release" "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tlsa/libcyaml";
|
|
|
|
description = "C library for reading and writing YAML";
|
2021-12-08 04:20:00 +00:00
|
|
|
changelog = "https://github.com/tlsa/libcyaml/raw/v${version}/CHANGES.md";
|
2020-09-26 16:19:40 +00:00
|
|
|
license = licenses.isc;
|
2021-12-08 04:20:00 +00:00
|
|
|
platforms = platforms.unix;
|
2020-09-26 16:19:40 +00:00
|
|
|
};
|
|
|
|
}
|