3
0
Fork 0
forked from mirrors/nixpkgs

libjson: Update to 7.6.1

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-08-15 09:23:00 -04:00
parent 48e89259b1
commit 63d096bc46
2 changed files with 21 additions and 6 deletions

View file

@ -1,13 +1,16 @@
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "libjson-7.4.0";
let
version = "7.6.1";
in stdenv.mkDerivation rec {
name = "libjson-${version}";
src = fetchurl {
url = "mirror://sourceforge/libjson/libjson_7.4.0.zip";
sha256 = "0rd6m3r3acm7xq6f0mbyyhc3dnwmiga60cws29yjl6nx2f9h3r0x";
url = "mirror://sourceforge/libjson/libjson_${version}.zip";
sha256 = "0xkk5qc7kjcdwz9l04kmiz1nhmi7iszl3k165phf53h3a4wpl9h7";
};
patches = [ ./install-fix.patch ];
buildInputs = [ unzip ];
makeFlags = "prefix=$out";
makeFlags = [ "prefix=$(out)" ];
preInstall = "mkdir -p $out/lib";
meta = {
homepage = "http://libjson.sourceforge.net/";
description = "A JSON reader and writer";

View file

@ -0,0 +1,12 @@
diff -Naur libjson-orig/makefile libjson/makefile
--- libjson-orig/makefile 2012-05-30 05:15:42.000000000 -0400
+++ libjson/makefile 2013-08-15 09:17:41.154245534 -0400
@@ -266,7 +266,7 @@
cp -r ./$(srcdir)/JSONDefs $(include_path)/$(libname_hdr)/$(srcdir)
chmod -R a+r $(include_path)/$(libname_hdr)
find $(include_path)/$(libname_hdr) -type d -exec chmod a+x {} \;
- cp -rv $(srcdir)/Dependencies/ $(include_path)/$(libname_hdr)/$(srcdir)
+ cp -rv $(srcdir)/../Dependencies/ $(include_path)/$(libname_hdr)/$(srcdir)/..
@echo "Install header files: Done."
clean: banner