2021-01-31 00:23:20 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, ffmpeg, lua5_1, curl
|
2021-01-17 03:30:45 +01:00
|
|
|
, libpng, xorg, pkg-config, 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";
|
2020-09-30 02:17:49 +02:00
|
|
|
version = "3.0.2-2019-10-05";
|
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;
|
2020-09-30 02:17:49 +02:00
|
|
|
rev = "37ba0fd692d6581f8fe009ed11c9650cd8174123";
|
2022-01-13 11:29:20 +01:00
|
|
|
sha256 = "sha256-v/+2dxOY/p6wNAywcFHUAfsZEJw31Syu2MacN/KeyWg=";
|
2009-04-30 19:41:19 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:30:45 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2009-04-30 19:41:19 +02:00
|
|
|
|
2017-01-30 02:44:50 +01:00
|
|
|
buildInputs = [
|
2021-01-31 00:23:20 +01:00
|
|
|
wxGTK30 ffmpeg 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
|
|
|
];
|
|
|
|
|
2020-09-30 02:17:49 +02:00
|
|
|
makeFlags = [
|
|
|
|
''CXXFLAGS+="-DGL_GLEXT_PROTOTYPES"''
|
|
|
|
];
|
|
|
|
|
2017-01-30 02:44:50 +01:00
|
|
|
preBuild = ''
|
|
|
|
sed -i "s|/usr|$out|" Makefile
|
2009-04-30 19:41:19 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2009-04-30 19:41:19 +02:00
|
|
|
description = "Electric Sheep, a distributed screen saver for evolving artificial organisms";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://electricsheep.org/";
|
2021-05-14 16:00:41 +02:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2017-01-30 02:44:50 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl1;
|
2009-04-30 19:41:19 +02:00
|
|
|
};
|
|
|
|
}
|