diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2017-10-02 22:01:31 +0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2017-10-03 00:18:30 +0200 |
commit | 2066cb0b029cc38810ea73cc16918815884c1b31 (patch) | |
tree | 8532d9463b7222ba450ddc61b3670f798045bcf5 /pkgs/development/tools/jq | |
parent | 6c189c9e284b2c66efbf24d2b1ecf35d95eb6974 (diff) |
jq: don't add rpath on darwin
Diffstat (limited to 'pkgs/development/tools/jq')
-rw-r--r-- | pkgs/development/tools/jq/default.nix | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/development/tools/jq/default.nix b/pkgs/development/tools/jq/default.nix index d79aa0980003b..a84b5f42640b8 100644 --- a/pkgs/development/tools/jq/default.nix +++ b/pkgs/development/tools/jq/default.nix @@ -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; |