nixpkgs-suyu/pkgs/tools/text/jsawk/default.nix

29 lines
784 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, makeWrapper, spidermonkey_78 }:
2017-10-26 02:12:29 +02:00
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
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;
nativeBuildInputs = [ makeWrapper ];
2017-10-26 02:12:29 +02:00
installPhase = ''
mkdir -p $out/bin
cp $src/jsawk $out/bin/
wrapProgram $out/bin/jsawk \
--prefix PATH : "${spidermonkey_78}/bin"
2017-10-26 02:12:29 +02:00
'';
meta = {
description = "Like awk, but for JSON";
homepage = "https://github.com/micha/jsawk";
2021-01-15 10:19:50 +01:00
license = lib.licenses.publicDomain;
maintainers = with lib.maintainers; [ puffnfresh ];
platforms = lib.platforms.unix;
2017-10-26 02:12:29 +02:00
};
}