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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

98 lines
1.6 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
2021-11-19 21:17:53 +00:00
, racket_7_9
, 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
];
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";
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
2021-11-19 21:17:53 +00:00
racket_7_9
2020-01-20 07:51:57 +00: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/
'';
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 ];
};
}