nixpkgs/pkgs/applications/graphics/fluxus/default.nix

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

78 lines
1.4 KiB
Nix
Raw Normal View History

2023-12-11 18:35:21 +00:00
{ lib
, stdenv
2020-01-20 07:51:57 +00:00
, fetchFromGitLab
, alsa-lib
2020-01-20 07:51:57 +00:00
, fftw
, freeglut
, freetype
, glew
, libjack2
, libjpeg
, liblo
, libsndfile
, libtiff
, ode
, openal
, openssl
2021-11-19 21:17:53 +00:00
, racket_7_9
, scons
2020-01-20 07:51:57 +00:00
}:
let
2021-11-19 21:17:53 +00:00
racket = racket_7_9;
2020-01-20 07:51:57 +00:00
in
2023-12-11 18:35:21 +00:00
stdenv.mkDerivation {
2020-01-20 07:51:57 +00:00
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 = [ scons ];
2020-01-20 07:51:57 +00:00
patches = [ ./fix-build.patch ];
2023-12-11 18:35:21 +00:00
postPatch = ''
substituteInPlace src/Unicode.cpp \
--replace "(byte)" "(unsigned char)"
'';
2020-01-20 07:51:57 +00:00
sconsFlags = [
"RacketPrefix=${racket}"
"RacketInclude=${racket}/include/racket"
"RacketLib=${racket}/lib/racket"
"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 ];
2023-12-11 18:35:21 +00:00
platforms = platforms.linux;
2020-01-20 07:51:57 +00:00
};
}