2022-10-30 02:20:56 +03:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, wxGTK32
|
2023-03-03 21:41:10 +03:00
|
|
|
, ffmpeg_4
|
2022-10-30 02:20:56 +03:00
|
|
|
, lua5_1
|
|
|
|
, curl
|
|
|
|
, libpng
|
|
|
|
, xorg
|
|
|
|
, pkg-config
|
|
|
|
, flam3
|
|
|
|
, libgtop
|
2023-07-22 16:09:28 +03:00
|
|
|
, boost179
|
2022-10-30 02:20:56 +03:00
|
|
|
, tinyxml
|
|
|
|
, freeglut
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, glee
|
|
|
|
}:
|
2009-04-30 21:41:19 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-01-30 04:44:50 +03:00
|
|
|
pname = "electricsheep";
|
2020-09-30 03:17:49 +03:00
|
|
|
version = "3.0.2-2019-10-05";
|
2017-02-09 01:46:05 +03:00
|
|
|
|
2017-01-30 04:44:50 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scottdraves";
|
2017-02-09 01:46:05 +03:00
|
|
|
repo = pname;
|
2020-09-30 03:17:49 +03:00
|
|
|
rev = "37ba0fd692d6581f8fe009ed11c9650cd8174123";
|
2022-01-13 13:29:20 +03:00
|
|
|
sha256 = "sha256-v/+2dxOY/p6wNAywcFHUAfsZEJw31Syu2MacN/KeyWg=";
|
2009-04-30 21:41:19 +04:00
|
|
|
};
|
|
|
|
|
2021-01-17 05:30:45 +03:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2009-04-30 21:41:19 +04:00
|
|
|
|
2017-01-30 04:44:50 +03:00
|
|
|
buildInputs = [
|
2022-10-30 02:20:56 +03:00
|
|
|
wxGTK32
|
2023-03-03 21:41:10 +03:00
|
|
|
ffmpeg_4
|
2022-10-30 02:20:56 +03:00
|
|
|
lua5_1
|
|
|
|
curl
|
|
|
|
libpng
|
|
|
|
xorg.libXrender
|
|
|
|
flam3
|
|
|
|
libgtop
|
2023-07-22 16:09:28 +03:00
|
|
|
boost179
|
2022-10-30 02:20:56 +03:00
|
|
|
tinyxml
|
|
|
|
freeglut
|
|
|
|
libGLU
|
|
|
|
libGL
|
|
|
|
glee
|
2017-01-30 04:44:50 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
preAutoreconf = ''
|
|
|
|
cd client_generic
|
|
|
|
sed -i '/ACX_PTHREAD/d' configure.ac
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
2017-02-09 01:46:05 +03:00
|
|
|
"CPPFLAGS=-I${glee}/include/GL"
|
2017-01-30 04:44:50 +03:00
|
|
|
];
|
|
|
|
|
2020-09-30 03:17:49 +03:00
|
|
|
makeFlags = [
|
|
|
|
''CXXFLAGS+="-DGL_GLEXT_PROTOTYPES"''
|
|
|
|
];
|
|
|
|
|
2017-01-30 04:44:50 +03:00
|
|
|
preBuild = ''
|
|
|
|
sed -i "s|/usr|$out|" Makefile
|
2009-04-30 21:41:19 +04:00
|
|
|
'';
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2009-04-30 21:41:19 +04:00
|
|
|
description = "Electric Sheep, a distributed screen saver for evolving artificial organisms";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://electricsheep.org/";
|
2022-08-03 15:13:56 +03:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-01-30 04:44:50 +03:00
|
|
|
platforms = platforms.linux;
|
2022-09-29 11:54:21 +03:00
|
|
|
license = licenses.gpl2Only;
|
2009-04-30 21:41:19 +04:00
|
|
|
};
|
|
|
|
}
|