2020-06-18 04:14:37 +02:00
|
|
|
{ stdenv, meson, ninja, fetchFromGitHub, ... }:
|
2020-07-31 06:13:41 +02:00
|
|
|
let version = "r50";
|
2020-07-31 06:17:28 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2020-06-19 22:55:30 +02:00
|
|
|
pname = "libinih";
|
2020-07-31 06:13:41 +02:00
|
|
|
inherit version;
|
2020-06-18 04:14:37 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "benhoyt";
|
|
|
|
repo = "inih";
|
|
|
|
rev = "${version}";
|
|
|
|
hash = "sha256-GF+TVEysaXJxSBBjMsTr2IQvRKlzdEu3rlPQ88PE3nI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ meson ninja ];
|
|
|
|
|
|
|
|
mesonFlags = ''
|
|
|
|
-Ddefault_library=shared
|
|
|
|
-Ddistro_install=true
|
|
|
|
'';
|
2020-06-19 22:55:30 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple .INI file parser in C";
|
|
|
|
homepage = "https://github.com/benhoyt/inih";
|
|
|
|
maintainers = [ maintainers.nrdxp ];
|
|
|
|
license = licenses.bsd3;
|
2020-08-04 08:25:28 +02:00
|
|
|
platforms = platforms.all;
|
2020-06-19 22:55:30 +02:00
|
|
|
inherit version;
|
|
|
|
};
|
2020-06-18 04:14:37 +02:00
|
|
|
}
|