2021-04-30 22:40:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, which
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2021-04-30 22:40:53 +00:00
|
|
|
, libsndfile
|
|
|
|
, qt4
|
2021-12-14 21:20:11 +00:00
|
|
|
, qscintilla-qt4
|
2021-04-30 22:40:53 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, libjack2
|
|
|
|
, audioBackend ? "pulse" # "pulse", "alsa", or "jack"
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "miniaudicle";
|
|
|
|
version = "1.3.5.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://audicle.cs.princeton.edu/mini/release/files/miniAudicle-${version}.tgz";
|
|
|
|
hash = "sha256-dakDz69uHbKZFj8z67CubmRXEQ5X6GuYqlCXXvLzqSI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "miniAudicle-${version}/src";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace miniAudicle.pro \
|
|
|
|
--replace "/usr/local" $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
which
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib
|
2021-04-30 22:40:53 +00:00
|
|
|
libsndfile
|
|
|
|
qt4
|
2021-12-14 21:20:11 +00:00
|
|
|
qscintilla-qt4
|
2021-04-30 22:40:53 +00:00
|
|
|
] ++ lib.optional (audioBackend == "pulse") libpulseaudio
|
|
|
|
++ lib.optional (audioBackend == "jack") libjack2;
|
|
|
|
|
|
|
|
buildFlags = [ "linux-${audioBackend}" ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A light-weight integrated development environment for the ChucK digital audio programming language";
|
|
|
|
homepage = "https://audicle.cs.princeton.edu/mini/";
|
|
|
|
downloadPage = "https://audicle.cs.princeton.edu/mini/linux/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
broken = stdenv.isDarwin; # not attempted
|
|
|
|
};
|
|
|
|
}
|