nixpkgs/pkgs/tools/text/jsawk/default.nix
Maciej Krüger 946369adbd
spidermonkey: remove spidermonkey_38 -> spidermonkey alias
This removes the spidermonkey alias and renames it in the packages still
using it

Not sure if we need it in aliases.nix since just about nothing depends
on it anymore

Additionally considering removal should be a good choice, it's at least
insecure so it should get tagged as such
2020-10-01 10:00:22 +02:00

29 lines
803 B
Nix

{ stdenv, fetchFromGitHub, makeWrapper, spidermonkey_38 }:
stdenv.mkDerivation {
pname = "jsawk";
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_38}/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;
};
}