Skip to content

Commit

Permalink
iniparser: 4.0 -> 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
primeos committed Nov 7, 2017
1 parent 0de572b commit 52d6eec
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions pkgs/development/libraries/iniparser/default.nix
@@ -1,27 +1,21 @@
{ stdenv, fetchFromGitHub }:

let
inherit (stdenv.lib) optional;

in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
name = "iniparser-${version}";
version = "4.0";
version = "4.1";

src = fetchFromGitHub {
owner = "ndevilla";
repo = "iniparser";
rev = "v${version}";
sha256 = "0339qa0qxa5z02xjcs5my8v91v0r9jm4piswrl1sa29kwyxgv5nb";
sha256 = "0dhab6pad6wh816lr7r3jb6z273njlgw2vpw8kcfnmi7ijaqhnr5";
};

patches = ./no-usr.patch;

doCheck = true;
preCheck = "patchShebangs test/make-tests.sh";

# TODO: Build dylib on Darwin
buildFlags = (if stdenv.isDarwin then [ "libiniparser.a" ] else [ "libiniparser.so" ]) ++ [ "CC=cc" ];

installPhase = ''
mkdir -p $out/lib
Expand All @@ -34,17 +28,16 @@ in stdenv.mkDerivation rec {
done;
cp -r html $out/share/doc/${name}
'' + (if stdenv.isDarwin then ''
cp libiniparser.a $out/lib
'' else ''
cp libiniparser.so.0 $out/lib
ln -s libiniparser.so.0 $out/lib/libiniparser.so
'');
cp libiniparser.so.1 $out/lib
ln -s libiniparser.so.1 $out/lib/libiniparser.so
'';

meta = {
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "Free standalone ini file parsing library";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.primeos ];
};
}

0 comments on commit 52d6eec

Please sign in to comment.