mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-20 11:11:43 -04:00
61922738bb
Per the adjusted FFmpeg pinning advice, packages that work on the default version should use the unversioned variants to ease the migration to future versions and reduce the number of packages that end up referencing old versions. I have left HandBrake pinned as it builds a custom patched FFmpeg.
77 lines
1.2 KiB
Nix
77 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, wxGTK32
|
|
, ffmpeg
|
|
, lua5_1
|
|
, curl
|
|
, libpng
|
|
, xorg
|
|
, pkg-config
|
|
, flam3
|
|
, libgtop
|
|
, boost179
|
|
, tinyxml
|
|
, libglut
|
|
, libGLU
|
|
, libGL
|
|
, glee
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "electricsheep";
|
|
version = "3.0.2-unstable-2024-02-13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scottdraves";
|
|
repo = "electricsheep";
|
|
rev = "5fbbb684752be06ccbea41639968aa7f1cc678dd";
|
|
hash = "sha256-X3EZ1/VcLEU1GkZbskWSsqQWYTnsH3pbFDvDLpdLmcU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
buildInputs = [
|
|
wxGTK32
|
|
ffmpeg
|
|
lua5_1
|
|
curl
|
|
libpng
|
|
xorg.libXrender
|
|
flam3
|
|
libgtop
|
|
boost179
|
|
tinyxml
|
|
libglut
|
|
libGLU
|
|
libGL
|
|
glee
|
|
];
|
|
|
|
preAutoreconf = ''
|
|
cd client_generic
|
|
sed -i '/ACX_PTHREAD/d' configure.ac
|
|
'';
|
|
|
|
configureFlags = [
|
|
"CPPFLAGS=-I${glee}/include/GL"
|
|
];
|
|
|
|
makeFlags = [
|
|
''CXXFLAGS+="-DGL_GLEXT_PROTOTYPES"''
|
|
];
|
|
|
|
preBuild = ''
|
|
sed -i "s|/usr|$out|" Makefile
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Electric Sheep, a distributed screen saver for evolving artificial organisms";
|
|
homepage = "https://electricsheep.org/";
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2Only;
|
|
};
|
|
}
|