Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub 2, libyaml 3}: 4 5stdenv.mkDerivation rec { 6 pname = "libcyaml"; 7 version = "1.4.1"; 8 9 src = fetchFromGitHub { 10 owner = "tlsa"; 11 repo = "libcyaml"; 12 rev = "v${version}"; 13 sha256 = "sha256-iS1T8R0SW+qu0TlP5FVlDzUfQitiZMUkbJUigbxeW0Y="; 14 }; 15 16 buildInputs = [ libyaml ]; 17 18 makeFlags = [ "VARIANT=release" "PREFIX=$(out)" ]; 19 20 meta = with lib; { 21 homepage = "https://github.com/tlsa/libcyaml"; 22 description = "C library for reading and writing YAML"; 23 changelog = "https://github.com/tlsa/libcyaml/raw/v${version}/CHANGES.md"; 24 license = licenses.isc; 25 platforms = platforms.unix; 26 }; 27}