mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
d7039d5029
On darwin we need the correct prefix during the buildPhase, otherwise the dynamic libraries have an incorrect install_name.
25 lines
659 B
Nix
25 lines
659 B
Nix
{ stdenv, fetchFromGitHub, libtool }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libmpack-${version}";
|
|
version = "1.0.5";
|
|
src = fetchFromGitHub {
|
|
owner = "tarruda";
|
|
repo = "libmpack";
|
|
rev = version;
|
|
sha256 = "0rai5djdkjz7bsn025k5489in7r1amagw1pib0z4qns6b52kiar2";
|
|
};
|
|
|
|
nativeBuildInputs = [ libtool ];
|
|
|
|
makeFlags = [ "LIBTOOL=libtool" "PREFIX=$(out)" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Simple implementation of msgpack in C";
|
|
homepage = https://github.com/tarruda/libmpack/;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lovek323 garbas ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|