nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 cmake,
6 boost186,
7}:
8
9let
10 boost = boost186;
11in
12
13stdenv.mkDerivation rec {
14 pname = "ispike";
15 version = "2.1.1";
16
17 src = fetchurl {
18 url = "mirror://sourceforge/ispike/${pname}-${version}.tar.gz";
19 sha256 = "0khrxp43bi5kisr8j4lp9fl4r5marzf7b4inys62ac108sfb28lp";
20 };
21
22 postPatch = ''
23 sed -i "1i #include <map>" include/iSpike/YarpConnection.hpp
24
25 substituteInPlace CMakeLists.txt \
26 --replace-fail "CMAKE_MINIMUM_REQUIRED (VERSION 2.6.2)" "cmake_minimum_required(VERSION 3.10)"
27 substituteInPlace src/CMakeLists.txt \
28 --replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
29 '';
30
31 nativeBuildInputs = [ cmake ];
32 buildInputs = [ boost ];
33
34 meta = {
35 description = "Spiking neural interface between iCub and a spiking neural simulator";
36 homepage = "https://sourceforge.net/projects/ispike/";
37 license = lib.licenses.lgpl3;
38 platforms = lib.platforms.unix;
39 maintainers = [ lib.maintainers.nico202 ];
40 };
41}