2013-05-20 08:17:20 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="jq";
|
2014-06-10 06:41:48 +01:00
|
|
|
version="1.4";
|
2013-05-20 08:17:20 +01:00
|
|
|
name="${baseName}-${version}";
|
2014-06-10 06:41:48 +01:00
|
|
|
hash="17dk17h7qj6xpnsbc09qwsqkm6r7jhqbfkjvwq246yxmpsx4334r";
|
|
|
|
url="http://stedolan.github.io/jq/download/source/jq-1.4.tar.gz";
|
|
|
|
sha256="17dk17h7qj6xpnsbc09qwsqkm6r7jhqbfkjvwq246yxmpsx4334r";
|
2013-05-20 08:17:20 +01:00
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2014-08-13 13:22:38 +01:00
|
|
|
|
|
|
|
# jq is linked to libjq:
|
|
|
|
configureFlags = [
|
|
|
|
"LDFLAGS=-Wl,-rpath,\\\${libdir}"
|
|
|
|
];
|
2013-05-20 08:17:20 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|