argpp: init at 0-unstable-2022-08-14

This commit is contained in:
SchweGELBin
2025-10-11 20:12:47 +02:00
parent cc5f51f7e2
commit acba1fa119

View File

@@ -0,0 +1,38 @@
{
stdenv,
lib,
fetchFromGitHub,
cmake,
gtest,
tinycmmc,
}:
stdenv.mkDerivation {
pname = "argpp";
version = "0-unstable-2022-08-14";
src = fetchFromGitHub {
owner = "Grumbel";
repo = "argpp";
rev = "9e1d54f8ed20af0aa5857e6653ab605b2ab63d5c";
sha256 = "sha256-unfAFxgvv1BOUEqrYYMFfouGe2xIcKJ3ithCel1P9sc=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
gtest
tinycmmc
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)"
'';
meta = {
description = "Argument Parser for C++";
maintainers = [ lib.maintainers.SchweGELBin ];
platforms = lib.platforms.linux;
license = lib.licenses.free;
};
}