jsawk: init at 1.5-pre
This commit is contained in:
parent
c564e54f12
commit
b72fcce2d9
28
pkgs/tools/text/jsawk/default.nix
Normal file
28
pkgs/tools/text/jsawk/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, makeWrapper, spidermonkey }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "jsawk-${version}";
|
||||||
|
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";
|
||||||
|
homepage = https://github.com/micha/jsawk;
|
||||||
|
license = stdenv.lib.licenses.publicDomain;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [ puffnfresh ];
|
||||||
|
platforms = stdenv.lib.platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@ -2814,6 +2814,8 @@ with pkgs;
|
|||||||
|
|
||||||
jrnl = callPackage ../applications/misc/jrnl { };
|
jrnl = callPackage ../applications/misc/jrnl { };
|
||||||
|
|
||||||
|
jsawk = callPackage ../tools/text/jsawk { };
|
||||||
|
|
||||||
jscoverage = callPackage ../development/tools/misc/jscoverage { };
|
jscoverage = callPackage ../development/tools/misc/jscoverage { };
|
||||||
|
|
||||||
jsduck = callPackage ../development/tools/jsduck { };
|
jsduck = callPackage ../development/tools/jsduck { };
|
||||||
|
Loading…
Reference in New Issue
Block a user