about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/science/robotics/ispike/default.nix
blob: 28a38b7056ddc840c0a6b5114c213de009b90590 (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
{ lib, stdenv, fetchurl, cmake, boost }:

stdenv.mkDerivation rec {
  pname = "ispike";
  version = "2.1.1";

  src = fetchurl {
    url = "mirror://sourceforge/ispike/${pname}-${version}.tar.gz";
    sha256 = "0khrxp43bi5kisr8j4lp9fl4r5marzf7b4inys62ac108sfb28lp";
  };

  postPatch = ''
    sed -i "1i #include <map>" include/iSpike/YarpConnection.hpp
  '';

  nativeBuildInputs = [ cmake ];
  buildInputs = [ boost ];

  meta = {
    description = "Spiking neural interface between iCub and a spiking neural simulator";
    homepage = "https://sourceforge.net/projects/ispike/";
    license = lib.licenses.lgpl3;
    platforms = lib.platforms.unix;
    maintainers = [ lib.maintainers.nico202 ];
  };
}