diff options
author | Remy Goldschmidt <taktoa@gmail.com> | 2016-09-03 18:24:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-03 18:24:55 -0500 |
commit | 52545aab7dee4fe874dd7d111e7069b9afd0d92e (patch) | |
tree | 6c1427312b042132f0b42450030d32d99dcd090d /pkgs/development/libraries/libmsgpack | |
parent | 639f98ff3c001f171bc255c5a33b3c9c311ea999 (diff) | |
download | nixpkgs-52545aab7dee4fe874dd7d111e7069b9afd0d92e.tar nixpkgs-52545aab7dee4fe874dd7d111e7069b9afd0d92e.tar.gz nixpkgs-52545aab7dee4fe874dd7d111e7069b9afd0d92e.tar.bz2 nixpkgs-52545aab7dee4fe874dd7d111e7069b9afd0d92e.tar.lz nixpkgs-52545aab7dee4fe874dd7d111e7069b9afd0d92e.tar.xz nixpkgs-52545aab7dee4fe874dd7d111e7069b9afd0d92e.tar.zst nixpkgs-52545aab7dee4fe874dd7d111e7069b9afd0d92e.zip |
libmsgpack: fixed mingw32 cross-build
`cmake`, as usual, should be in `nativeBuildInputs` and we need to add a few cmake flags for mingw32 build to succeed.
Diffstat (limited to 'pkgs/development/libraries/libmsgpack')
-rw-r--r-- | pkgs/development/libraries/libmsgpack/generic.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libmsgpack/generic.nix b/pkgs/development/libraries/libmsgpack/generic.nix index 72943c098ba..2da703da4cf 100644 --- a/pkgs/development/libraries/libmsgpack/generic.nix +++ b/pkgs/development/libraries/libmsgpack/generic.nix @@ -8,7 +8,12 @@ stdenv.mkDerivation rec { inherit src patches; - buildInputs = [ cmake ]; + nativeBuildInputs = [ cmake ]; + + crossAttrs = { + } // stdenv.lib.optionalAttrs (stdenv.cross.libc == "msvcrt") { + cmakeFlags = "-DMSGPACK_BUILD_EXAMPLES=OFF -DCMAKE_SYSTEM_NAME=Windows"; + }; meta = with stdenv.lib; { description = "MessagePack implementation for C and C++"; |