2010-07-28 15:55:54 +04:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2008-01-28 22:45:19 +03:00
|
|
|
stdenv.mkDerivation rec{
|
2010-07-28 15:55:54 +04:00
|
|
|
name = "iniparser-3.0b";
|
2008-01-28 22:45:19 +03:00
|
|
|
|
2010-07-28 15:55:54 +04:00
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/iniparser3.0b.tar.gz";
|
|
|
|
sha256 = "09klyddnqlpbgkv4cmh6ww9q5pv6nf1vfmzw4z256p51rnnlqqwa";
|
|
|
|
};
|
2008-01-28 22:45:19 +03:00
|
|
|
|
2010-07-28 15:55:54 +04:00
|
|
|
patches = ./no-usr.patch;
|
2008-01-28 22:45:19 +03:00
|
|
|
|
2010-07-28 15:55:54 +04:00
|
|
|
buildFlags = "libiniparser.so";
|
2008-01-28 22:45:19 +03:00
|
|
|
|
2010-07-28 15:55:54 +04:00
|
|
|
installPhase = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/lib
|
2010-07-28 15:55:54 +04:00
|
|
|
cp libiniparser.so.0 $out/lib
|
|
|
|
ln -s libiniparser.so.0 $out/lib/libiniparser.so
|
2008-01-28 22:45:19 +03:00
|
|
|
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/include
|
2010-07-28 15:55:54 +04:00
|
|
|
cp src/*.h $out/include
|
2008-01-28 22:45:19 +03:00
|
|
|
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/share/doc/${name}
|
2010-07-28 15:55:54 +04:00
|
|
|
for i in AUTHORS INSTALL LICENSE README; do
|
|
|
|
bzip2 -c -9 $i > $out/share/doc/${name}/$i.bz2;
|
|
|
|
done;
|
|
|
|
cp -r html $out/share/doc/${name}
|
|
|
|
'';
|
2008-01-28 22:45:19 +03:00
|
|
|
|
2010-07-28 15:55:54 +04:00
|
|
|
meta = {
|
|
|
|
homepage = http://ndevilla.free.fr/iniparser;
|
|
|
|
description = "Free standalone ini file parsing library";
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2010-07-28 15:55:54 +04:00
|
|
|
};
|
2008-01-28 22:45:19 +03:00
|
|
|
}
|