git.iko.soy/typeable/nixpkgs
on master help sign in
Add jshon package

Jshon is a JSON parser designed for maximum convenience within the shell (http://kmkeen.com/jshon).

commitfa24a296be2471c0cde7828d4e55d8bfe0e4d999 authorrushmorem <rushmore@webenchanter.com> dateThu 19 Feb 2015, 15:17 (12 years ago) parenta76b53b
2 files changed+36
pkgs/development/tools/parsing/jshon/default.nix+34 pkgs/top-level/all-packages.nix+2
pkgs/development/tools/parsing/jshon/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ stdenv, lib, fetchFromGitHub, jansson }:
2+
3+stdenv.mkDerivation rec {
4+ name = "jshon-20140712";
5+
6+ rev = "a61d7f2f85f4627bc3facdf951746f0fd62334b7";
7+ sha256 = "b0365e58553b9613a5636545c5bfd4ad05ab5024f192e1cb1d1824bae4e1a380";
8+
9+ src = fetchFromGitHub {
10+ inherit rev sha256;
11+ owner = "keenerd";
12+ repo = "jshon";
13+ };
14+
15+ buildInputs = [ jansson ];
16+
17+ patchPhase =
18+ ''
19+ substituteInPlace Makefile --replace "/usr/" "/"
20+ '';
21+
22+ preInstall =
23+ ''
24+ export DESTDIR=$out
25+ '';
26+
27+ meta = with lib; {
28+ homepage = http://kmkeen.com/jshon;
29+ description = "JSON parser designed for maximum convenience within the shell.";
30+ license = licenses.free;
31+ platforms = platforms.all;
32+ maintainers = with maintainers; [ rushmorem ];
33+ };
34+}
pkgs/top-level/all-packages.nix+2
@@ -5913,6 +5913,8 @@ let
59135913
59145914 jetty_util = callPackage ../development/libraries/java/jetty-util { };
59155915
5916+ jshon = callPackage ../development/tools/parsing/jshon { };
5917+
59165918 json_glib = callPackage ../development/libraries/json-glib { };
59175919
59185920 json-c-0-11 = callPackage ../development/libraries/json-c/0.11.nix { }; # vulnerable