Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "tinycbor"; 5 version = "0.6.0"; 6 7 src = fetchFromGitHub { 8 owner = "intel"; 9 repo = "tinycbor"; 10 rev = "v${version}"; 11 sha256 = "1ph1cmsh4hm6ikd3bs45mnv9zmniyrvp2rrg8qln204kr6fngfcd"; 12 }; 13 14 makeFlags = [ "prefix=$(out)" ]; 15 16 meta = with lib; { 17 description = "Concise Binary Object Representation (CBOR) Library"; 18 homepage = "https://github.com/intel/tinycbor"; 19 license = licenses.mit; 20 maintainers = with maintainers; [ oxzi ]; 21 }; 22}