mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
628ae1c63e
Fixes runtime error: jq: error while loading shared libraries: libjq.so.1: cannot open shared object file: No such file or directory
34 lines
850 B
Nix
34 lines
850 B
Nix
{stdenv, fetchurl}:
|
|
let
|
|
s = # Generated upstream information
|
|
rec {
|
|
baseName="jq";
|
|
version="1.4";
|
|
name="${baseName}-${version}";
|
|
hash="17dk17h7qj6xpnsbc09qwsqkm6r7jhqbfkjvwq246yxmpsx4334r";
|
|
url="http://stedolan.github.io/jq/download/source/jq-1.4.tar.gz";
|
|
sha256="17dk17h7qj6xpnsbc09qwsqkm6r7jhqbfkjvwq246yxmpsx4334r";
|
|
};
|
|
buildInputs = [
|
|
];
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit (s) name version;
|
|
inherit buildInputs;
|
|
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'';
|
|
license = stdenv.lib.licenses.mit ;
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|