mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
Added homepage where missing, where the sources are pulled from: - https://github.com - https://git.sr.ht - https://gitlab.com - https://invent.kde.org - https://codeberg.org - https://gitlab.gnome.org - https://gitlab.freedesktop.org - https://git.FreeBSD.org - https://salsa.debian.org - https://git.tvdr.de - https://git.suckless.org
40 lines
824 B
Nix
40 lines
824 B
Nix
{
|
|
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++";
|
|
homepage = "https://github.com/Grumbel/argpp";
|
|
maintainers = [ lib.maintainers.SchweGELBin ];
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.free;
|
|
};
|
|
}
|