2020-04-30 11:25:37 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, jansson }:
|
2015-02-19 13:17:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-30 11:25:37 +01:00
|
|
|
pname = "jshon";
|
|
|
|
version = "20170302";
|
2015-02-19 13:17:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keenerd";
|
|
|
|
repo = "jshon";
|
2020-04-30 11:25:37 +01:00
|
|
|
rev = "d919aeaece37962251dbe6c1ee50f0028a5c90e4";
|
|
|
|
sha256 = "1x4zfmsjq0l2y994bxkhx3mn5vzjxxr39iib213zjchi9h6yxvnc";
|
2015-02-19 13:17:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ jansson ];
|
|
|
|
|
2017-03-10 20:59:38 +00:00
|
|
|
patchPhase =
|
2015-02-19 13:17:24 +00:00
|
|
|
''
|
|
|
|
substituteInPlace Makefile --replace "/usr/" "/"
|
|
|
|
'';
|
|
|
|
|
2017-03-10 20:59:38 +00:00
|
|
|
preInstall =
|
2015-02-19 13:17:24 +00:00
|
|
|
''
|
|
|
|
export DESTDIR=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://kmkeen.com/jshon";
|
2015-04-28 09:54:58 +01:00
|
|
|
description = "JSON parser designed for maximum convenience within the shell";
|
2015-02-19 13:17:24 +00:00
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ rushmorem ];
|
|
|
|
};
|
|
|
|
}
|