Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "protozero"; 5 version = "1.7.1"; 6 7 src = fetchFromGitHub { 8 owner = "mapbox"; 9 repo = "protozero"; 10 rev = "v${version}"; 11 sha256 = "sha256-R8lGewsEOxPNbKlkIeiM4yIwUcTzi2Dm0+xJ2WrBTBQ="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 meta = with lib; { 17 description = "Minimalistic protocol buffer decoder and encoder in C++"; 18 homepage = "https://github.com/mapbox/protozero"; 19 license = with licenses; [ bsd2 asl20 ]; 20 changelog = [ 21 "https://github.com/mapbox/protozero/releases/tag/v${version}" 22 "https://github.com/mapbox/protozero/blob/v${version}/CHANGELOG.md" 23 ]; 24 maintainers = with maintainers; [ das-g ]; 25 }; 26}