mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
595a36d846
Required since SCons 4.0.0 doesn't support Python 2.7 anymore.
97 lines
1.5 KiB
Nix
97 lines
1.5 KiB
Nix
{ stdenv
|
|
, fetchFromGitLab
|
|
, alsaLib
|
|
, bzip2
|
|
, fftw
|
|
, freeglut
|
|
, freetype
|
|
, glew
|
|
, libjack2
|
|
, libGL
|
|
, libGLU
|
|
, libjpeg
|
|
, liblo
|
|
, libpng
|
|
, libsndfile
|
|
, libtiff
|
|
, ode
|
|
, openal
|
|
, openssl
|
|
, racket
|
|
, sconsPackages
|
|
, 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";
|
|
sha256 = "0mwghpgq4n1khwlmgscirhmcdhi6x00c08q4idi2zcqz961bbs28";
|
|
};
|
|
|
|
buildInputs = [
|
|
alsaLib
|
|
fftw
|
|
freeglut.dev
|
|
freetype
|
|
glew
|
|
libjack2
|
|
libjpeg.dev
|
|
liblo
|
|
libsndfile.dev
|
|
libtiff.dev
|
|
ode
|
|
openal
|
|
openssl.dev
|
|
racket
|
|
];
|
|
nativeBuildInputs = [ sconsPackages.scons_3_1_2 ];
|
|
|
|
patches = [ ./fix-build.patch ];
|
|
sconsFlags = [
|
|
"RacketPrefix=${racket}"
|
|
"RacketInclude=${racket}/include/racket"
|
|
"RacketLib=${racket}/lib/racket"
|
|
"LIBPATH=${stdenv.lib.makeLibraryPath libs}"
|
|
"DESTDIR=build"
|
|
];
|
|
configurePhase = ''
|
|
sconsFlags+=" Prefix=$out"
|
|
'';
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -r build$out/* $out/
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Livecoding environment for 3D graphics, sound, and games";
|
|
license = licenses.gpl2;
|
|
homepage = "http://www.pawfal.org/fluxus/";
|
|
maintainers = [ maintainers.brainrape ];
|
|
};
|
|
}
|