git.iko.soy/typeable/nixpkgs
on master help sign in
jq: don't add rpath on darwin
commit2066cb0b029cc38810ea73cc16918815884c1b31 authorDaiderd Jordan <daiderd@gmail.com> dateMon 2 Oct 2017, 22:01 (9 years ago) parent6c189c9
1 file changed+6−8
pkgs/development/tools/jq/default.nix+6−8
pkgs/development/tools/jq/default.nix+6−8
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchurl, fetchpatch, oniguruma }:
1+{ stdenv, fetchurl, fetchpatch, oniguruma }:
22
33stdenv.mkDerivation rec {
44 name = "jq-${version}";
@@ -26,15 +26,13 @@ stdenv.mkDerivation rec {
2626 patchFlags = [ "-p2" ]; # `src` subdir was introduced after v1.5 was released
2727
2828 # jq is linked to libjq:
29− configureFlags = [
30− "LDFLAGS=-Wl,-rpath,\\\${libdir}"
31− ];
29+ configureFlags = stdenv.lib.optional (!stdenv.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}";
3230
33− meta = {
31+ meta = with stdenv.lib; {
3432 description = ''A lightweight and flexible command-line JSON processor'';
35− license = lib.licenses.mit;
36− maintainers = with lib.maintainers; [ raskin ];
37− platforms = with lib.platforms; linux ++ darwin;
33+ license = licenses.mit;
34+ maintainers = with maintainers; [ raskin ];
35+ platforms = with platforms; linux ++ darwin;
3836 downloadPage = "http://stedolan.github.io/jq/download/";
3937 updateWalker = true;
4038 inherit version;