depot/pkgs/by-name/si/simpleini/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

53 lines
1.3 KiB
Nix

{
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;
};
})