mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
Merge pull request #6469 from rushmorem/jshon-package
Add jshon package
This commit is contained in:
commit
d44573e16f
34
pkgs/development/tools/parsing/jshon/default.nix
Normal file
34
pkgs/development/tools/parsing/jshon/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ stdenv, lib, fetchFromGitHub, jansson }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "jshon-20140712";
|
||||||
|
|
||||||
|
rev = "a61d7f2f85f4627bc3facdf951746f0fd62334b7";
|
||||||
|
sha256 = "b0365e58553b9613a5636545c5bfd4ad05ab5024f192e1cb1d1824bae4e1a380";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
inherit rev sha256;
|
||||||
|
owner = "keenerd";
|
||||||
|
repo = "jshon";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5934,6 +5934,8 @@ let
|
||||||
|
|
||||||
jetty_util = callPackage ../development/libraries/java/jetty-util { };
|
jetty_util = callPackage ../development/libraries/java/jetty-util { };
|
||||||
|
|
||||||
|
jshon = callPackage ../development/tools/parsing/jshon { };
|
||||||
|
|
||||||
json_glib = callPackage ../development/libraries/json-glib { };
|
json_glib = callPackage ../development/libraries/json-glib { };
|
||||||
|
|
||||||
json-c-0-11 = callPackage ../development/libraries/json-c/0.11.nix { }; # vulnerable
|
json-c-0-11 = callPackage ../development/libraries/json-c/0.11.nix { }; # vulnerable
|
||||||
|
|
Loading…
Reference in a new issue