2024-02-07 01:22:34 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, which
|
|
|
|
, alsa-lib
|
|
|
|
, curl
|
|
|
|
, faust
|
|
|
|
, flac
|
|
|
|
, gnutls
|
|
|
|
, libjack2
|
|
|
|
, libmicrohttpd
|
|
|
|
, libmpg123
|
|
|
|
, libogg
|
|
|
|
, libopus
|
|
|
|
, libsndfile
|
|
|
|
, libtasn1
|
|
|
|
, libvorbis
|
|
|
|
, libxcb
|
|
|
|
, llvm
|
|
|
|
, p11-kit
|
|
|
|
, qrencode
|
|
|
|
, qt5
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "faustlive";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.5.17";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grame-cncm";
|
|
|
|
repo = "faustlive";
|
2021-06-06 07:54:09 +00:00
|
|
|
rev = version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-RqtdDkP63l/30sL5PDocvpar5TI4LdKfeeliSNeOHog=";
|
2020-08-20 17:08:02 +00:00
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
patches = [
|
|
|
|
# move mutex initialization outside assert call
|
|
|
|
# https://github.com/grame-cncm/faustlive/pull/59
|
|
|
|
(fetchpatch {
|
|
|
|
name = "initalize-mutexes.patch";
|
|
|
|
url = "https://github.com/grame-cncm/faustlive/commit/fdd46b12202def9731b9ed2f6363287af16be892.patch";
|
|
|
|
hash = "sha256-yH95Y4Jbqgs8siE9rtutmu5C2sNZwQMJzCgDYqNBDj4=";
|
|
|
|
})
|
|
|
|
];
|
2021-06-06 07:54:09 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
faust
|
|
|
|
llvm
|
|
|
|
pkg-config
|
|
|
|
qt5.wrapQtAppsHook
|
|
|
|
which
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
curl
|
|
|
|
faust
|
|
|
|
flac
|
|
|
|
gnutls
|
|
|
|
libjack2
|
|
|
|
libmicrohttpd
|
|
|
|
libmpg123
|
|
|
|
libogg
|
|
|
|
libopus
|
|
|
|
libsndfile
|
|
|
|
libtasn1
|
|
|
|
libvorbis
|
|
|
|
libxcb
|
|
|
|
llvm
|
|
|
|
p11-kit
|
|
|
|
qrencode
|
|
|
|
qt5.qtbase
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = "cd Build";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A standalone just-in-time Faust compiler";
|
|
|
|
longDescription = ''
|
|
|
|
FaustLive is a standalone just-in-time Faust compiler. It tries to bring
|
|
|
|
together the convenience of a standalone interpreted language with the
|
|
|
|
efficiency of a compiled language. It's ideal for fast prototyping.
|
|
|
|
'';
|
2020-11-30 08:33:03 +00:00
|
|
|
homepage = "https://faust.grame.fr/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
2021-06-06 07:54:09 +00:00
|
|
|
maintainers = with maintainers; [ magnetophon ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|