diff options
author | Orivej Desh <orivej@gmx.fr> | 2023-03-29 01:54:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 01:54:51 +0000 |
commit | 4a6f9a7bd647d21ff2629cd94ae8e24a3743b8e2 (patch) | |
tree | e50837e806a1124afe829bb5f06e798c17a4116b /pkgs/applications/audio/raysession | |
parent | ee0efdd6a02063bc66729d867c7c6b3375d8e80f (diff) |
raysession: init at 0.13.1 (#222628)
Fixes #194022
Diffstat (limited to 'pkgs/applications/audio/raysession')
-rw-r--r-- | pkgs/applications/audio/raysession/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/audio/raysession/default.nix b/pkgs/applications/audio/raysession/default.nix new file mode 100644 index 0000000000000..bc1a85abafa22 --- /dev/null +++ b/pkgs/applications/audio/raysession/default.nix @@ -0,0 +1,44 @@ +{ lib, fetchurl, buildPythonApplication, pydbus, pyliblo, pyqt5, qttools, which }: + +buildPythonApplication rec { + pname = "raysession"; + version = "0.13.1"; + + src = fetchurl { + url = "https://github.com/Houston4444/RaySession/releases/download/v${version}/RaySession-${version}-source.tar.gz"; + sha256 = "sha256-iiFRtX43u9BHe7a4ojza7kav+dMW9e05dPi7Gf9d1GM="; + }; + + 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. + qttools # lrelease to build translations. + which # which to find lrelease. + ]; + + propagatedBuildInputs = [ pydbus pyliblo pyqt5 ]; + + dontWrapQtApps = true; # The program is a python script. + + installFlags = [ "PREFIX=$(out)" ]; + + postFixup = '' + wrapPythonProgramsIn "$out/share/raysession/src" "$out $pythonPath" + ''; + + 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; + }; +} |