diff options
author | Doron Behar <doron.behar@gmail.com> | 2024-03-21 10:22:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 10:22:26 +0200 |
commit | 8b6a6e13c36ff76981d6213064d6790baf4777c6 (patch) | |
tree | 2d54de644b3514edd1e06806474a7770b014d21b /pkgs/by-name/re | |
parent | 37550e3dfaccce9cb02e6cb48d9d2c58b372d938 (diff) | |
parent | 8c55ddd36700723429c3a24b14661ac600b82ca6 (diff) |
Merge pull request #285241 from Guanran928/resonance
resonance: init at 0-unstable-2023-06-06
Diffstat (limited to 'pkgs/by-name/re')
-rw-r--r-- | pkgs/by-name/re/resonance/package.nix | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/pkgs/by-name/re/resonance/package.nix b/pkgs/by-name/re/resonance/package.nix new file mode 100644 index 0000000000000..fe7be58060a31 --- /dev/null +++ b/pkgs/by-name/re/resonance/package.nix @@ -0,0 +1,83 @@ +{ lib +, cargo +, dbus +, desktop-file-utils +, fetchFromGitHub +, glib +, gst_all_1 +, gtk4 +, libadwaita +, libxml2 +, meson +, ninja +, nix-update-script +, openssl +, pkg-config +, python3 +, python3Packages +, rustPlatform +, rustc +, sqlite +, stdenv +, wrapGAppsHook4 +}: +stdenv.mkDerivation (finalAttrs: { + pname = "resonance"; + version = "0-unstable-2023-06-06"; + + src = fetchFromGitHub { + owner = "nate-xyz"; + repo = "resonance"; + rev = "97826093e22418c0efdb4e61cc75d981bb82c120"; + hash = "sha256-DgNUjb8+2WTw91OGgFf97YL6lnODtkftYAP/c05RUPI="; + }; + + cargoDeps = rustPlatform.fetchCargoTarball { + src = finalAttrs.src; + hash = "sha256-/v3OokClOk95GOzidBHRkUG7kjHQm35yPeC1n3PzcyM="; + }; + + nativeBuildInputs = [ + cargo + desktop-file-utils + meson + ninja + pkg-config + python3 + rustPlatform.cargoSetupHook + rustc + wrapGAppsHook4 + ]; + + buildInputs = [ + dbus + glib + gtk4 + libadwaita + libxml2 + openssl + sqlite + ] ++ (with gst_all_1; [ + gst-libav + gst-plugins-bad + gst-plugins-base + gst-plugins-good + gst-plugins-ugly + gstreamer + ]); + + preFixup = '' + gappsWrapperArgs+=(--prefix PYTHONPATH : ${python3.pkgs.makePythonPath (with python3Packages; [ tqdm mutagen loguru ])}) + ''; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + description = "Intuitive GTK4/LibAdwaita music player"; + homepage = "https://github.com/nate-xyz/resonance"; + license = licenses.gpl3Plus; + mainProgram = "resonance"; + maintainers = with maintainers; [ Guanran928 ]; + platforms = platforms.linux; + }; +}) |