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