mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
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;
|
|
};
|
|
}
|