summary refs log tree commit diff
path: root/pkgs/development/libraries/inih
diff options
context:
space:
mode:
authorTredwellGit <tredwell@tutanota.com>2020-12-16 08:25:53 +0000
committerTredwellGit <tredwell@tutanota.com>2020-12-25 22:09:19 +0000
commit72f29cde3be75394ab0e2e0b895ca8328b76bd69 (patch)
treef74343f08c2de2bb9c7b7d581507129446f167d2 /pkgs/development/libraries/inih
parent50407869b42414d2f1bd811a032c31e82d5cf84f (diff)
downloadnixpkgs-72f29cde3be75394ab0e2e0b895ca8328b76bd69.tar
nixpkgs-72f29cde3be75394ab0e2e0b895ca8328b76bd69.tar.gz
nixpkgs-72f29cde3be75394ab0e2e0b895ca8328b76bd69.tar.bz2
nixpkgs-72f29cde3be75394ab0e2e0b895ca8328b76bd69.tar.lz
nixpkgs-72f29cde3be75394ab0e2e0b895ca8328b76bd69.tar.xz
nixpkgs-72f29cde3be75394ab0e2e0b895ca8328b76bd69.tar.zst
nixpkgs-72f29cde3be75394ab0e2e0b895ca8328b76bd69.zip
inih: init at r52
Diffstat (limited to 'pkgs/development/libraries/inih')
-rw-r--r--pkgs/development/libraries/inih/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/libraries/inih/default.nix b/pkgs/development/libraries/inih/default.nix
new file mode 100644
index 00000000000..62de607f7d4
--- /dev/null
+++ b/pkgs/development/libraries/inih/default.nix
@@ -0,0 +1,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;
+  };
+}