Files
2026-04-20 19:44:56 +00:00

36 lines
844 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "args";
version = "6.4.9";
src = fetchFromGitHub {
owner = "Taywee";
repo = "args";
rev = finalAttrs.version;
sha256 = "sha256-+RzPVWFhA7tsiw04/i9OxqmoHVF5Whr9FC1isV8RrE0=";
};
nativeBuildInputs = [ cmake ];
# https://github.com/Taywee/args/issues/108
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace '$'{CMAKE_INSTALL_LIBDIR_ARCHIND} '$'{CMAKE_INSTALL_LIBDIR}
substituteInPlace packaging/pkgconfig.pc.in \
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
'';
meta = {
description = "Simple header-only C++ argument parser library";
homepage = "https://github.com/Taywee/args";
license = lib.licenses.mit;
maintainers = [ ];
};
})