argpp: init at 0-unstable-2022-08-14
This commit is contained in:
38
pkgs/by-name/ar/argpp/package.nix
Normal file
38
pkgs/by-name/ar/argpp/package.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user