1 { lib, fetchurl, buildPythonApplication, libjack2, pyliblo, pyqt5, which, bash, qt5 }:
3 buildPythonApplication rec {
8 url = "https://github.com/Houston4444/RaySession/releases/download/v${version}/RaySession-${version}-source.tar.gz";
9 sha256 = "sha256-3+g1zdjGkxNEpyuKuxzhr2p9gkEFjYAso4fPedbjmlY=";
13 # Fix installation path of xdg schemas.
14 substituteInPlace Makefile --replace '$(DESTDIR)/' '$(DESTDIR)$(PREFIX)/'
15 # Do not wrap an importable module with a shell script.
16 chmod -x src/daemon/desktops_memory.py
22 pyqt5 # pyuic5 and pyrcc5 to build resources.
23 qt5.qttools # lrelease to build translations.
24 which # which to find lrelease.
27 buildInputs = [ libjack2 bash ];
28 propagatedBuildInputs = [ pyliblo pyqt5 ];
30 dontWrapQtApps = true; # The program is a python script.
32 installFlags = [ "PREFIX=$(out)" ];
35 "--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ libjack2 ])
39 wrapPythonProgramsIn "$out/share/raysession/src" "$out $pythonPath"
40 for file in $out/bin/*; do
46 homepage = "https://github.com/Houston4444/RaySession";
47 description = "Session manager for Linux musical programs";
48 license = licenses.gpl2;
49 maintainers = with maintainers; [ orivej ];
50 platforms = platforms.linux;