3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #236629 from onny/muzika

muzika: init at unstable-2023-06-07
This commit is contained in:
Jonas Heinrich 2023-06-11 14:53:12 +02:00 committed by GitHub
commit 2db20ecbc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 84 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -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; };
};