nixpkgs/pkgs/development/tools/parsing/jshon/default.nix
Ryan Mulligan b402f4fc59 jshon: 20140712 -> 20160111.2
Semi-automatic update. These checks were done:

- built on NixOS
- ran `/nix/store/pdxydl7lg0pbpcmh2332yygbb7b4vbq2-jshon-20160111.2/bin/jshon help` got 0 exit code
- found 20160111.2 in filename of file in /nix/store/pdxydl7lg0pbpcmh2332yygbb7b4vbq2-jshon-20160111.2
2018-03-08 20:38:10 -08:00

44 lines
1.0 KiB
Nix

{ stdenv, lib, fetchFromGitHub, fetchpatch, jansson }:
stdenv.mkDerivation rec {
name = "jshon-20160111.2";
rev = "a61d7f2f85f4627bc3facdf951746f0fd62334b7";
sha256 = "1053w7jbl90q3p5y34pi4i8an1ddsjzwaib5cfji75ivamc5wdmh";
src = fetchFromGitHub {
inherit rev sha256;
owner = "keenerd";
repo = "jshon";
};
patches = [
# Fix null termination in read_stream.
# https://github.com/keenerd/jshon/issues/53
(fetchpatch {
url = https://github.com/mbrock/jshon/commit/32288dd186573ceb58164f30be1782d4580466d8.patch;
sha256 = "04rss2nprl9nqblc7smq0477n54hm801xgnnmvyzni313i1n6vhl";
})
];
buildInputs = [ jansson ];
patchPhase =
''
substituteInPlace Makefile --replace "/usr/" "/"
'';
preInstall =
''
export DESTDIR=$out
'';
meta = with lib; {
homepage = http://kmkeen.com/jshon;
description = "JSON parser designed for maximum convenience within the shell";
license = licenses.free;
platforms = platforms.all;
maintainers = with maintainers; [ rushmorem ];
};
}