nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ 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 nativeBuildInputs = [ libtool ];
14
15 makeFlags = [ "LIBTOOL=libtool" "PREFIX=$(out)" ];
16
17 meta = with stdenv.lib; {
18 description = "Simple implementation of msgpack in C";
19 homepage = "https://github.com/tarruda/libmpack/";
20 license = licenses.mit;
21 maintainers = with maintainers; [ lovek323 ];
22 platforms = platforms.linux ++ platforms.darwin;
23 };
24}