about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/ignition-transport/generic.nix
blob: 2573c97aa09fbd24b9d5c85b38eaacf9fa68ac8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, cmake, pkgconfig, utillinux,
  protobuf, zeromq, cppzmq,
  version, src    # parametrize version and src so we can easily have pkgs
                  # for different versions
  , ...
}:

stdenv.mkDerivation {
  pname = "ign-transport";
  inherit version;
  inherit src;

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ cmake protobuf zeromq
    utillinux # we need utillinux/e2fsprogs uuid/uuid.h
  ];

  propagatedBuildInputs = [ cppzmq ];

  postPatch = ''
    substituteInPlace cmake/ignition-config.cmake.in --replace "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_" "@CMAKE_INSTALL_"
  '';

  meta = with stdenv.lib; {
    homepage = "https://ignitionrobotics.org/libraries/math";
    description = "Math library by Ingition Robotics, created for the Gazebo project";
    license = licenses.asl20;
    maintainers = with maintainers; [ pxc ];
    platforms = platforms.all;
    broken = true; # 2018-04-10
  };
}