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