jq: don't add rpath on darwin

This commit is contained in:
Daiderd Jordan 2017-10-02 22:01:31 +02:00
parent 6c189c9e28
commit 2066cb0b02
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, fetchpatch, oniguruma }:
{ stdenv, fetchurl, fetchpatch, oniguruma }:
stdenv.mkDerivation rec {
name = "jq-${version}";
@ -26,15 +26,13 @@ stdenv.mkDerivation rec {
patchFlags = [ "-p2" ]; # `src` subdir was introduced after v1.5 was released
# jq is linked to libjq:
configureFlags = [
"LDFLAGS=-Wl,-rpath,\\\${libdir}"
];
configureFlags = stdenv.lib.optional (!stdenv.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}";
meta = {
meta = with stdenv.lib; {
description = ''A lightweight and flexible command-line JSON processor'';
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ raskin ];
platforms = with lib.platforms; linux ++ darwin;
license = licenses.mit;
maintainers = with maintainers; [ raskin ];
platforms = with platforms; linux ++ darwin;
downloadPage = "http://stedolan.github.io/jq/download/";
updateWalker = true;
inherit version;