2017-02-08 23:46:05 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, libav, lua5_1, curl
|
2019-11-10 17:44:34 +01:00
|
|
|
, libpng, xorg, pkgconfig, flam3, libgtop, boost, tinyxml, freeglut, libGLU, libGL
|
2017-02-08 23:46:05 +01:00
|
|
|
, glee }:
|
2009-04-30 19:41:19 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-01-30 02:44:50 +01:00
|
|
|
pname = "electricsheep";
|
2018-01-27 11:19:55 +01:00
|
|
|
version = "2.7b33-2017-10-20";
|
2017-02-08 23:46:05 +01:00
|
|
|
|
2017-01-30 02:44:50 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scottdraves";
|
2017-02-08 23:46:05 +01:00
|
|
|
repo = pname;
|
2018-01-27 11:19:55 +01:00
|
|
|
rev = "c02c19b9364733fc73826e105fc983a89a8b4f40";
|
|
|
|
sha256 = "1z49l53j1lhk7ahdy96lm9r0pklwpf2i5s6y2l2rn6l4z8dxkjmk";
|
2009-04-30 19:41:19 +02:00
|
|
|
};
|
|
|
|
|
2017-02-08 23:46:05 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2009-04-30 19:41:19 +02:00
|
|
|
|
2017-01-30 02:44:50 +01:00
|
|
|
buildInputs = [
|
2017-02-08 23:46:05 +01:00
|
|
|
wxGTK30 libav lua5_1 curl libpng xorg.libXrender
|
2019-11-10 17:44:34 +01:00
|
|
|
flam3 libgtop boost tinyxml freeglut libGLU libGL glee
|
2017-01-30 02:44:50 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preAutoreconf = ''
|
|
|
|
cd client_generic
|
|
|
|
sed -i '/ACX_PTHREAD/d' configure.ac
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
2017-02-08 23:46:05 +01:00
|
|
|
"CPPFLAGS=-I${glee}/include/GL"
|
2017-01-30 02:44:50 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
sed -i "s|/usr|$out|" Makefile
|
2009-04-30 19:41:19 +02:00
|
|
|
'';
|
|
|
|
|
2017-01-30 02:44:50 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-04-30 19:41:19 +02:00
|
|
|
description = "Electric Sheep, a distributed screen saver for evolving artificial organisms";
|
2018-06-23 13:34:55 +02:00
|
|
|
homepage = https://electricsheep.org/;
|
2017-02-08 23:46:05 +01:00
|
|
|
maintainers = with maintainers; [ nand0p fpletz ];
|
2017-01-30 02:44:50 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl1;
|
2009-04-30 19:41:19 +02:00
|
|
|
};
|
|
|
|
}
|