nixpkgs/pkgs/development/tools/parsing/jshon/default.nix

34 lines
749 B
Nix
Raw Normal View History

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