1{
2 lib,
3 stdenv,
4 fetchurl,
5 cmake,
6 boost,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "ispike";
11 version = "2.1.1";
12
13 src = fetchurl {
14 url = "mirror://sourceforge/ispike/${pname}-${version}.tar.gz";
15 sha256 = "0khrxp43bi5kisr8j4lp9fl4r5marzf7b4inys62ac108sfb28lp";
16 };
17
18 postPatch = ''
19 sed -i "1i #include <map>" include/iSpike/YarpConnection.hpp
20 '';
21
22 nativeBuildInputs = [ cmake ];
23 buildInputs = [ boost ];
24
25 meta = {
26 description = "Spiking neural interface between iCub and a spiking neural simulator";
27 homepage = "https://sourceforge.net/projects/ispike/";
28 license = lib.licenses.lgpl3;
29 platforms = lib.platforms.unix;
30 maintainers = [ lib.maintainers.nico202 ];
31 };
32}