Files
nixpkgs/pkgs/by-name/si/simpleini/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
gtest,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "simpleini";
version = "4.22";
src = fetchFromGitHub {
name = "simpleini-sources-${finalAttrs.version}";
owner = "brofield";
repo = "simpleini";
tag = "v${finalAttrs.version}";
hash = "sha256-H4J4+v/3A8ZTOp4iMeiZ0OClu68oP4vUZ8YOFZbllcM=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
gtest
];
strictDeps = true;
cmakeFlags = [ (lib.cmakeBool "SIMPLEINI_USE_SYSTEM_GTEST" true) ];
patches = [
# Fixes for cmake export from master, can be removed after the next release
(fetchpatch {
url = "https://github.com/brofield/simpleini/commit/aeacf861a8ad8add5f4974792a88ffea393e41db.patch";
hash = "sha256-lpoQHff8JwfljMUxL6Y2MqsGDZtDPjnOIKSIJ1rqrAI=";
})
];
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
];
platforms = lib.platforms.all;
};
})