2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-01-20 08:51:57 +01:00
|
|
|
, fetchFromGitLab
|
|
|
|
, alsaLib
|
|
|
|
, bzip2
|
|
|
|
, fftw
|
|
|
|
, freeglut
|
|
|
|
, freetype
|
|
|
|
, glew
|
|
|
|
, libjack2
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libjpeg
|
|
|
|
, liblo
|
|
|
|
, libpng
|
|
|
|
, libsndfile
|
|
|
|
, libtiff
|
|
|
|
, ode
|
|
|
|
, openal
|
|
|
|
, openssl
|
|
|
|
, racket
|
2020-07-18 01:30:28 +02:00
|
|
|
, sconsPackages
|
2020-01-20 08:51:57 +01:00
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
libs = [
|
|
|
|
alsaLib
|
|
|
|
bzip2
|
|
|
|
fftw
|
|
|
|
freeglut
|
|
|
|
freetype
|
|
|
|
glew
|
|
|
|
libjack2
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libjpeg
|
|
|
|
liblo
|
|
|
|
libpng
|
|
|
|
libsndfile
|
|
|
|
libtiff
|
|
|
|
ode
|
|
|
|
openal
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fluxus";
|
|
|
|
version = "0.19";
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "nebogeo";
|
|
|
|
repo = "fluxus";
|
|
|
|
rev = "ba9aee218dd4a9cfab914ad78bdb6d59e9a37400";
|
2020-03-29 09:18:32 +02:00
|
|
|
sha256 = "0mwghpgq4n1khwlmgscirhmcdhi6x00c08q4idi2zcqz961bbs28";
|
2020-01-20 08:51:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
fftw
|
|
|
|
freeglut.dev
|
|
|
|
freetype
|
|
|
|
glew
|
|
|
|
libjack2
|
|
|
|
libjpeg.dev
|
|
|
|
liblo
|
|
|
|
libsndfile.dev
|
|
|
|
libtiff.dev
|
|
|
|
ode
|
|
|
|
openal
|
|
|
|
openssl.dev
|
|
|
|
racket
|
|
|
|
];
|
2020-07-18 01:30:28 +02:00
|
|
|
nativeBuildInputs = [ sconsPackages.scons_3_1_2 ];
|
2020-01-20 08:51:57 +01:00
|
|
|
|
|
|
|
patches = [ ./fix-build.patch ];
|
|
|
|
sconsFlags = [
|
|
|
|
"RacketPrefix=${racket}"
|
|
|
|
"RacketInclude=${racket}/include/racket"
|
|
|
|
"RacketLib=${racket}/lib/racket"
|
2021-01-15 14:21:58 +01:00
|
|
|
"LIBPATH=${lib.makeLibraryPath libs}"
|
2020-01-20 08:51:57 +01:00
|
|
|
"DESTDIR=build"
|
|
|
|
];
|
|
|
|
configurePhase = ''
|
|
|
|
sconsFlags+=" Prefix=$out"
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r build$out/* $out/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-01-20 08:51:57 +01:00
|
|
|
description = "Livecoding environment for 3D graphics, sound, and games";
|
|
|
|
license = licenses.gpl2;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.pawfal.org/fluxus/";
|
2020-01-20 08:51:57 +01:00
|
|
|
maintainers = [ maintainers.brainrape ];
|
|
|
|
};
|
|
|
|
}
|