2015-11-07 07:10:58 +01:00
|
|
|
{stdenv, fetchurl, oniguruma}:
|
2013-05-20 09:17:20 +02:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="jq";
|
2015-10-08 20:56:21 +02:00
|
|
|
version="1.5";
|
2013-05-20 09:17:20 +02:00
|
|
|
name="${baseName}-${version}";
|
2015-10-08 20:56:21 +02:00
|
|
|
url="https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz";
|
|
|
|
sha256="0g29kyz4ykasdcrb0zmbrp2jqs9kv1wz9swx849i2d1ncknbzln4";
|
2013-05-20 09:17:20 +02:00
|
|
|
};
|
|
|
|
buildInputs = [
|
2015-11-07 07:10:58 +01:00
|
|
|
oniguruma
|
2013-05-20 09:17:20 +02:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2014-08-13 14:22:38 +02:00
|
|
|
|
|
|
|
# jq is linked to libjq:
|
|
|
|
configureFlags = [
|
|
|
|
"LDFLAGS=-Wl,-rpath,\\\${libdir}"
|
|
|
|
];
|
2013-05-20 09:17:20 +02:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = ''A lightweight and flexible command-line JSON processor'';
|
|
|
|
license = stdenv.lib.licenses.mit ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2014-10-09 19:00:34 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
2013-05-20 09:17:20 +02:00
|
|
|
};
|
|
|
|
}
|