about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/inih/default.nix
blob: 62de607f7d43849297d6b729795a5e970da4cb4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub, meson, ninja }:

stdenv.mkDerivation rec {
  pname = "inih";
  version = "r52";

  src = fetchFromGitHub {
    owner = "benhoyt";
    repo = pname;
    rev = version;
    sha256 = "0lsvm34zabvi1xlximybzvgc58zb90mm3b9babwxlqs05jy871m4";
  };

  nativeBuildInputs = [ meson ninja ];

  mesonFlags = [
    "-Ddefault_library=shared"
    "-Ddistro_install=true"
    "-Dwith_INIReader=true"
  ];

  meta = with stdenv.lib; {
    description = "Simple .INI file parser in C, good for embedded systems";
    homepage = "https://github.com/benhoyt/inih";
    changelog = "https://github.com/benhoyt/inih/releases/tag/${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ TredwellGit ];
    platforms = platforms.all;
  };
}