From 628ae1c63e471a29005229a354d1d1883c881e06 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 13 Aug 2014 14:22:38 +0200 Subject: [PATCH] jq: make sure libjq is in library search path Fixes runtime error: jq: error while loading shared libraries: libjq.so.1: cannot open shared object file: No such file or directory --- pkgs/development/tools/jq/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/jq/default.nix b/pkgs/development/tools/jq/default.nix index 514aa8746c6..8194ffc22a8 100644 --- a/pkgs/development/tools/jq/default.nix +++ b/pkgs/development/tools/jq/default.nix @@ -18,6 +18,11 @@ stdenv.mkDerivation { src = fetchurl { inherit (s) url sha256; }; + + # jq is linked to libjq: + configureFlags = [ + "LDFLAGS=-Wl,-rpath,\\\${libdir}" + ]; meta = { inherit (s) version; description = ''A lightweight and flexible command-line JSON processor'';