@@ -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+}