1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/iniparser/default.nix
William A. Kennington III 40e433f6ff iniparser: 3.0b -> 3.1
2015-01-02 17:22:36 -08:00

36 lines
831 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec{
name = "iniparser-3.1";
src = fetchurl {
url = "${meta.homepage}/iniparser-3.1.tar.gz";
sha256 = "1igmxzcy0s25zcy9vmcw0kd13lh60r0b4qg8lnp1jic33f427pxf";
};
patches = ./no-usr.patch;
buildFlags = "libiniparser.so";
installPhase = ''
mkdir -p $out/lib
cp libiniparser.so.0 $out/lib
ln -s libiniparser.so.0 $out/lib/libiniparser.so
mkdir -p $out/include
cp src/*.h $out/include
mkdir -p $out/share/doc/${name}
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}
'';
meta = {
homepage = http://ndevilla.free.fr/iniparser;
description = "Free standalone ini file parsing library";
license = stdenv.lib.licenses.mit;
};
}