python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / reproc / default.nix
blob2083a6a7af4d36fcf00f8e6d4529a83ac5d3edf2
1 { stdenv, lib, fetchFromGitHub, cmake
2 }:
4 stdenv.mkDerivation rec {
5   pname = "reproc";
6   version = "14.2.4";
8   src = fetchFromGitHub {
9     owner = "DaanDeMeyer";
10     repo = "reproc";
11     rev = "v${version}";
12     sha256 = "sha256-LWzBeKhE7cSiZsK8xWzoTdrOcPiU/zEkmi40WiFytic=";
13   };
15   nativeBuildInputs = [ cmake ];
17   cmakeFlags = [
18     "-DCMAKE_BUILD_TYPE=Release"
19     "-DCMAKE_INSTALL_LIBDIR=lib"
20     "-DBUILD_SHARED_LIBS=ON"
21     "-DREPROC++=ON"
22     "-DREPROC_TEST=ON"
23   ];
25   # https://github.com/DaanDeMeyer/reproc/issues/81
26   postPatch = ''
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@
33   '';
35   meta = with lib; {
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;
40   };