mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
36 lines
788 B
Nix
36 lines
788 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libtool,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libmpack";
|
|
version = "1.0.5";
|
|
src = fetchFromGitHub {
|
|
owner = "libmpack";
|
|
repo = "libmpack";
|
|
rev = finalAttrs.version;
|
|
sha256 = "0rai5djdkjz7bsn025k5489in7r1amagw1pib0z4qns6b52kiar2";
|
|
};
|
|
|
|
preBuild = lib.optionalString stdenv.hostPlatform.isStatic ''
|
|
mkdir -p build/release/src build/release/test/deps/tap
|
|
'';
|
|
|
|
makeFlags = [
|
|
"LIBTOOL=${libtool}/bin/libtool"
|
|
"PREFIX=$(out)"
|
|
"config=release"
|
|
];
|
|
|
|
meta = {
|
|
description = "Simple implementation of msgpack in C";
|
|
homepage = "https://github.com/tarruda/libmpack/";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
};
|
|
})
|