Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, libtool }: 2 3stdenv.mkDerivation rec { 4 pname = "libmpack"; 5 version = "1.0.5"; 6 src = fetchFromGitHub { 7 owner = "libmpack"; 8 repo = "libmpack"; 9 rev = version; 10 sha256 = "0rai5djdkjz7bsn025k5489in7r1amagw1pib0z4qns6b52kiar2"; 11 }; 12 13 makeFlags = [ 14 "LIBTOOL=${libtool}/bin/libtool" 15 "PREFIX=$(out)" 16 "config=release" 17 ]; 18 19 meta = with lib; { 20 description = "Simple implementation of msgpack in C"; 21 homepage = "https://github.com/tarruda/libmpack/"; 22 license = licenses.mit; 23 maintainers = with maintainers; [ lovek323 ]; 24 platforms = platforms.linux ++ platforms.darwin; 25 }; 26}