2024-01-02 11:29:13 +00:00
|
|
|
{ lib, fetchurl, buildPythonApplication, libjack2, pyliblo, pyqt5, which, bash, qt5 }:
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "raysession";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.14.3";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Houston4444/RaySession/releases/download/v${version}/RaySession-${version}-source.tar.gz";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-3+g1zdjGkxNEpyuKuxzhr2p9gkEFjYAso4fPedbjmlY=";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Fix installation path of xdg schemas.
|
|
|
|
substituteInPlace Makefile --replace '$(DESTDIR)/' '$(DESTDIR)$(PREFIX)/'
|
|
|
|
# Do not wrap an importable module with a shell script.
|
|
|
|
chmod -x src/daemon/desktops_memory.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pyqt5 # pyuic5 and pyrcc5 to build resources.
|
2023-10-09 19:29:22 +00:00
|
|
|
qt5.qttools # lrelease to build translations.
|
2023-03-30 22:05:00 +00:00
|
|
|
which # which to find lrelease.
|
2023-10-09 19:29:22 +00:00
|
|
|
qt5.wrapQtAppsHook
|
2023-03-30 22:05:00 +00:00
|
|
|
];
|
2023-04-29 16:46:19 +00:00
|
|
|
buildInputs = [ libjack2 bash ];
|
2024-01-02 11:29:13 +00:00
|
|
|
propagatedBuildInputs = [ pyliblo pyqt5 ];
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
dontWrapQtApps = true; # The program is a python script.
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
makeWrapperArgs = [
|
|
|
|
"--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ libjack2 ])
|
|
|
|
];
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn "$out/share/raysession/src" "$out $pythonPath"
|
2023-10-09 19:29:22 +00:00
|
|
|
for file in $out/bin/*; do
|
|
|
|
wrapQtApp "$file"
|
|
|
|
done
|
2023-03-30 22:05:00 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Houston4444/RaySession";
|
|
|
|
description = "Session manager for Linux musical programs";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|