-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e9a9ca
commit 7638604
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
cmake, | ||
gtest, | ||
nix-update-script, | ||
}: | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "simpleini"; | ||
version = "4.22"; | ||
|
||
src = fetchFromGitHub { | ||
name = "simpleini-sources-${finalAttrs.version}"; | ||
owner = "brofield"; | ||
repo = "simpleini"; | ||
rev = "refs/tags/v${finalAttrs.version}"; | ||
hash = "sha256-H4J4+v/3A8ZTOp4iMeiZ0OClu68oP4vUZ8YOFZbllcM="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
cmake | ||
]; | ||
|
||
buildInputs = [ | ||
gtest | ||
]; | ||
|
||
strictDeps = true; | ||
|
||
cmakeFlags = [ (lib.cmakeBool "SIMPLEINI_USE_SYSTEM_GTEST" true) ]; | ||
|
||
passthru.updateScript = nix-update-script { }; | ||
|
||
meta = { | ||
description = "Cross-platform C++ library providing a simple API to read and write INI-style configuration files"; | ||
longDescription = '' | ||
A cross-platform library that provides a simple API to read and write | ||
INI-style configuration files. It supports data files in ASCII, MBCS and | ||
Unicode. It is designed explicitly to be portable to any platform and has | ||
been tested on Windows, WinCE and Linux. Released as open-source and free | ||
using the MIT licence. | ||
''; | ||
homepage = "https://github.com/brofield/simpleini"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ | ||
HeitorAugustoLN | ||
AndersonTorres | ||
]; | ||
platforms = lib.platforms.all; | ||
}; | ||
}) |