2018-08-04 23:05:42 +02:00
|
|
|
{ stdenv
|
2018-11-25 20:14:34 +01:00
|
|
|
, fetchzip
|
2018-08-04 23:05:42 +02:00
|
|
|
, pkgconfig
|
|
|
|
, qtbase
|
|
|
|
, makeWrapper
|
|
|
|
, python3Packages
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.9.0";
|
2018-11-05 00:32:52 +01:00
|
|
|
pname = "cadence";
|
2018-08-04 23:05:42 +02:00
|
|
|
|
2018-11-25 20:14:34 +01:00
|
|
|
src = fetchzip {
|
2018-08-04 23:05:42 +02:00
|
|
|
url = "https://github.com/falkTX/Cadence/archive/v${version}.tar.gz";
|
2018-11-25 20:14:34 +01:00
|
|
|
sha256 = "08vcggypkdfr70v49innahs5s11hi222dhhnm5wcqzdgksphqzwx";
|
2018-08-04 23:05:42 +02:00
|
|
|
};
|
|
|
|
|
2018-11-25 20:14:34 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
|
|
|
buildInputs = [ qtbase ];
|
2018-08-04 23:05:42 +02:00
|
|
|
|
|
|
|
makeFlags = ''
|
|
|
|
PREFIX=""
|
|
|
|
DESTDIR=$(out)
|
|
|
|
'';
|
|
|
|
|
2018-12-12 01:40:28 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [ pyqt5_with_qtwebkit ];
|
2018-08-04 23:05:42 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
2018-11-25 20:14:34 +01:00
|
|
|
# replace with our own wrappers. They need to be changed manually since it wouldn't work otherwise
|
|
|
|
rm $out/bin/cadence
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
|
|
|
|
--add-flags "-O $out/share/cadence/src/cadence.py"
|
|
|
|
rm $out/bin/claudia
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/claudia \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
|
|
|
|
--add-flags "-O $out/share/cadence/src/claudia.py"
|
|
|
|
rm $out/bin/catarina
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/catarina \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
|
|
|
|
--add-flags "-O $out/share/cadence/src/catarina.py"
|
|
|
|
rm $out/bin/catia
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/catia \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
|
|
|
|
--add-flags "-O $out/share/cadence/src/catia.py"
|
|
|
|
rm $out/bin/cadence-jacksettings
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence-jacksettings \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
|
|
|
|
--add-flags "-O $out/share/cadence/src/jacksettings.py"
|
|
|
|
rm $out/bin/cadence-aloop-daemon
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence-aloop-daemon \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
|
|
|
|
--add-flags "-O $out/share/cadence/src/cadence_aloop_daemon.py"
|
|
|
|
rm $out/bin/cadence-logs
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence-logs \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
|
|
|
|
--add-flags "-O $out/share/cadence/src/logs.py"
|
|
|
|
rm $out/bin/cadence-render
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence-render \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
|
|
|
|
--add-flags "-O $out/share/cadence/src/render.py"
|
|
|
|
rm $out/bin/claudia-launcher
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/claudia-launcher \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
|
|
|
|
--add-flags "-O $out/share/cadence/src/claudia_launcher.py"
|
|
|
|
rm $out/bin/cadence-session-start
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence-session-start \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
|
|
|
|
--add-flags "-O $out/share/cadence/src/cadence_session_start.py"
|
2018-08-04 23:05:42 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/falkTX/Cadence/;
|
|
|
|
description = "Collection of tools useful for audio production";
|
2018-11-25 20:14:34 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2018-08-04 23:05:42 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ genesis ];
|
2018-11-25 20:14:34 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2018-08-04 23:05:42 +02:00
|
|
|
};
|
|
|
|
}
|