diff --git a/pkgs/by-name/ar/argpp/package.nix b/pkgs/by-name/ar/argpp/package.nix new file mode 100644 index 000000000000..131a31a75a89 --- /dev/null +++ b/pkgs/by-name/ar/argpp/package.nix @@ -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; + }; +}