Skip to content

Instantly share code, notes, and snippets.

@dubiouscript
Created January 1, 2019 11:09
Show Gist options
  • Select an option

  • Save dubiouscript/29177577243931ceafe8cb517e0c64f7 to your computer and use it in GitHub Desktop.

Select an option

Save dubiouscript/29177577243931ceafe8cb517e0c64f7 to your computer and use it in GitHub Desktop.
with import {};
stdenv.mkDerivation rec {
name = "carla-${version}";
version = "1.9.12";
src = fetchFromGitHub {
owner = "falkTX";
repo = "Carla";
rev = "v${version}";
sha256 = "0hk3g0dhg91cbx19agvcy6idc0w4hfy1rg39yj3k82rxvghr4126";
};
buildInputs = with pkgs; [
python3
python37Packages.pyliblo
liblo
file
qt5.qtbase
python37Packages.pyqt5
jack2
libsndfile
makeWrapper
];
nativeBuildInputs = with pkgs; [
pkgconfig
];
pyrcc5 = "PYRCC5=${pkgs.python37Packages.pyqt5}/bin/pyrcc5";
pyuic5 = "PYUIC5=${pkgs.python37Packages.pyqt5}/bin/pyuic5";
buildPhase = ''
make ${pyrcc5} ${pyuic5} PREFIX=$out
'';
installPhase = ''
make ${pyrcc5} ${pyuic5} install PREFIX=$out
for i in $out/bin/*; do
wrapProgram "$i" --set PYTHONPATH $PYTHONPATH
done
for i in $out/bin/.*wrapped; do
sed -i $i -e "s#python3#${pkgs.python3}/bin/python3#"
done
'';
meta = with stdenv.lib; {
description = "Audio plugin host";
homepage = "https://github.com/falkTX/Carla";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment