diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2023-06-11 14:53:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 14:53:12 +0200 |
commit | 2db20ecbc1e9d9aec091c074e4d238ec1ad268f9 (patch) | |
tree | 77ea88da3a7f535434ca361cf6104e61b6f9f80e /pkgs | |
parent | e4082eecc23d13651b37f8b01bd83ae2216d3149 (diff) | |
parent | 7e66d21d24e332061a8802df1ef92ee812bdf592 (diff) |
Merge pull request #236629 from onny/muzika
muzika: init at unstable-2023-06-07
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/audio/muzika/default.nix | 82 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 84 insertions, 0 deletions
diff --git a/pkgs/applications/audio/muzika/default.nix b/pkgs/applications/audio/muzika/default.nix new file mode 100644 index 000000000000..01f09a5bef92 --- /dev/null +++ b/pkgs/applications/audio/muzika/default.nix @@ -0,0 +1,82 @@ +{ lib +, desktop-file-utils +, fetchFromGitHub +, fetchYarnDeps +, fixup_yarn_lock +, gjs +, glib-networking +, gobject-introspection +, gst_all_1 +, gtk4 +, libadwaita +, libsoup_3 +, meson +, ninja +, pkg-config +, stdenv +, wrapGAppsHook4 +, yarn +, nodejs +}: + +stdenv.mkDerivation rec { + pname = "muzika"; + version = "unstable-2023-06-07"; + + src = fetchFromGitHub { + owner = "vixalien"; + repo = "muzika"; + rev = "d0ca7eebad67082e73513ebd7ca04edb1fdec7ce"; + hash = "sha256-ycnHpyYaUJZgproTLCWCVzsvnUisXlq3fqlij1KryWA="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ + desktop-file-utils + gobject-introspection + meson + ninja + nodejs + pkg-config + wrapGAppsHook4 + yarn + ]; + + buildInputs = [ + gjs + glib-networking + gst_all_1.gst-plugins-base + gst_all_1.gst-plugins-good + gst_all_1.gst-plugins-bad + gtk4 + libadwaita + libsoup_3 + ]; + + yarnOfflineCache = fetchYarnDeps { + yarnLock = src + "/yarn.lock"; + hash = "sha256-FvPEbYIydgfyKKsf2jnXUbPEhIboPi3wR7BWzEuo72Q="; + }; + + preConfigure = '' + export HOME="$PWD" + yarn config --offline set yarn-offline-mirror $yarnOfflineCache + ${fixup_yarn_lock}/bin/fixup_yarn_lock yarn.lock + ''; + + mesonFlags = [ + "-Dyarnrc=../.yarnrc" + ]; + + postFixup = '' + sed -i "1 a imports.package._findEffectiveEntryPointName = () => 'com.vixalien.muzika';" $out/bin/.com.vixalien.muzika-wrapped + ln -s $out/bin/com.vixalien.muzika $out/bin/muzika + ''; + + meta = with lib; { + description = "Elegant music streaming app"; + homepage = "https://github.com/vixalien/muzika"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ onny ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c56434e89968..d580d5db30c6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31114,6 +31114,8 @@ with pkgs; molsketch = libsForQt5.callPackage ../applications/editors/molsketch { }; + muzika = callPackage ../applications/audio/muzika { }; + pattypan = callPackage ../applications/misc/pattypan { jdk = jdk.override { enableJavaFX = true; }; }; |