2017-10-26 02:12:29 +02:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, spidermonkey }:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "jsawk";
|
2017-10-26 02:12:29 +02:00
|
|
|
version = "1.5-pre";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "micha";
|
|
|
|
repo = "jsawk";
|
|
|
|
rev = "5a14c4af3c7b59807701b70a954ecefc6f77e978";
|
|
|
|
sha256 = "0z3vdr3c8nvdrrxkjv9b4xg47mdb2hsknxpimw6shgwbigihapyr";
|
|
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp $src/jsawk $out/bin/
|
|
|
|
wrapProgram $out/bin/jsawk \
|
|
|
|
--prefix PATH : "${spidermonkey}/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Jsawk is like awk, but for JSON";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/micha/jsawk";
|
2017-10-26 02:12:29 +02:00
|
|
|
license = stdenv.lib.licenses.publicDomain;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ puffnfresh ];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|