nixpkgs/pkgs/development/libraries/libcyaml/default.nix
2023-04-06 16:43:06 +00:00

28 lines
645 B
Nix

{ stdenv, lib, fetchFromGitHub
, libyaml
}:
stdenv.mkDerivation rec {
pname = "libcyaml";
version = "1.4.0";
src = fetchFromGitHub {
owner = "tlsa";
repo = "libcyaml";
rev = "v${version}";
sha256 = "sha256-UENh8oxZm7uukCr448Nrf7devDK4SIT3DVhvXbwfjw8=";
};
buildInputs = [ libyaml ];
makeFlags = [ "VARIANT=release" "PREFIX=$(out)" ];
meta = with lib; {
homepage = "https://github.com/tlsa/libcyaml";
description = "C library for reading and writing YAML";
changelog = "https://github.com/tlsa/libcyaml/raw/v${version}/CHANGES.md";
license = licenses.isc;
platforms = platforms.unix;
};
}