easytier: 2.1.1 -> 2.1.2 (#376259)
[NixPkgs.git] / pkgs / by-name / li / libargs / package.nix
blobe9900a4e4114e8741b2cd64bf25fadf833e20640
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "args";
10   version = "6.4.6";
12   src = fetchFromGitHub {
13     owner = "Taywee";
14     repo = pname;
15     rev = version;
16     sha256 = "sha256-2gH3h3QAl0+XVULt/fR2UUGKNIxTUmnRRdxPOFdpVy4=";
17   };
19   nativeBuildInputs = [ cmake ];
21   # https://github.com/Taywee/args/issues/108
22   postPatch = ''
23     substituteInPlace CMakeLists.txt \
24       --replace '$'{CMAKE_INSTALL_LIBDIR_ARCHIND} '$'{CMAKE_INSTALL_LIBDIR}
25     substituteInPlace packaging/pkgconfig.pc.in \
26       --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
27   '';
29   meta = with lib; {
30     description = "Simple header-only C++ argument parser library";
31     homepage = "https://github.com/Taywee/args";
32     license = licenses.mit;
33     maintainers = [ ];
34   };