1 { stdenv, lib, fetchFromGitHub, cmake
4 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
12 sha256 = "sha256-LWzBeKhE7cSiZsK8xWzoTdrOcPiU/zEkmi40WiFytic=";
15 nativeBuildInputs = [ cmake ];
18 "-DCMAKE_BUILD_TYPE=Release"
19 "-DCMAKE_INSTALL_LIBDIR=lib"
20 "-DBUILD_SHARED_LIBS=ON"
25 # https://github.com/DaanDeMeyer/reproc/issues/81
27 substituteInPlace reproc++/reproc++.pc.in \
28 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
29 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
30 substituteInPlace reproc/reproc.pc.in \
31 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
32 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
36 homepage = "https://github.com/DaanDeMeyer/reproc";
37 description = "A cross-platform (C99/C++11) process library";
38 license = licenses.mit;
39 platforms = platforms.all;