1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-vbf4kePi5gfg9ub4aP1cCK1jtiA65bUS9+5Ghgvxt/E=";
15 substituteInPlace CMakeLists.txt \
16 --replace '$'{CMAKE_INSTALL_LIBDIR_ARCHIND} '$'{CMAKE_INSTALL_LIBDIR}
17 substituteInPlace packaging/pkgconfig.pc.in \
18 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
26 description = "Argument Parser for Modern C++";
27 homepage = "https://github.com/p-ranav/argparse";
28 maintainers = with maintainers; [ _2gn ];
29 platforms = platforms.unix;
30 license = licenses.mit;