3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/fluxus/default.nix

97 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-01-20 07:51:57 +00:00
, fetchFromGitLab
, 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
, racket
, sconsPackages
2020-01-20 07:51:57 +00:00
, zlib
}:
let
libs = [
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
];
in
stdenv.mkDerivation rec {
pname = "fluxus";
version = "0.19";
src = fetchFromGitLab {
owner = "nebogeo";
repo = "fluxus";
rev = "ba9aee218dd4a9cfab914ad78bdb6d59e9a37400";
sha256 = "0mwghpgq4n1khwlmgscirhmcdhi6x00c08q4idi2zcqz961bbs28";
2020-01-20 07:51:57 +00:00
};
buildInputs = [
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
racket
];
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/
'';
meta = with lib; {
2020-01-20 07:51:57 +00:00
description = "Livecoding environment for 3D graphics, sound, and games";
license = licenses.gpl2;
homepage = "http://www.pawfal.org/fluxus/";
2020-01-20 07:51:57 +00:00
maintainers = [ maintainers.brainrape ];
};
}