deepin.deepin-music: init at 6.2.21
This commit is contained in:
parent
af735e7623
commit
c265b1e821
2 changed files with 100 additions and 0 deletions
99
pkgs/desktops/deepin/apps/deepin-music/default.nix
Normal file
99
pkgs/desktops/deepin/apps/deepin-music/default.nix
Normal file
|
@ -0,0 +1,99 @@
|
||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, pkg-config
|
||||||
|
, wrapQtAppsHook
|
||||||
|
, dtkwidget
|
||||||
|
, qt5integration
|
||||||
|
, qt5platform-plugins
|
||||||
|
, dde-qt-dbus-factory
|
||||||
|
, udisks2-qt5
|
||||||
|
, qtmpris
|
||||||
|
, qtdbusextended
|
||||||
|
, qtmultimedia
|
||||||
|
, qttools
|
||||||
|
, kcodecs
|
||||||
|
, ffmpeg
|
||||||
|
, libvlc
|
||||||
|
, libcue
|
||||||
|
, taglib
|
||||||
|
, gsettings-qt
|
||||||
|
, SDL2
|
||||||
|
, gtest
|
||||||
|
, qtbase
|
||||||
|
, gst_all_1
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "deepin-music";
|
||||||
|
version = "6.2.21";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "linuxdeepin";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-sN611COCWy1gF/BZZqZ154uYuRo9HsbJw2wXe9OJ+iQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/music-player/CMakeLists.txt \
|
||||||
|
--replace "include_directories(/usr/include/vlc)" "include_directories(${libvlc}/include/vlc)" \
|
||||||
|
--replace "include_directories(/usr/include/vlc/plugins)" "include_directories(${libvlc}/include/vlc/plugins)" \
|
||||||
|
--replace "/usr/share" "$out/share"
|
||||||
|
substituteInPlace src/libmusic-plugin/CMakeLists.txt \
|
||||||
|
--replace "/usr/lib/deepin-aiassistant" "$out/lib/deepin-aiassistant"
|
||||||
|
substituteInPlace src/music-player/data/deepin-music.desktop \
|
||||||
|
--replace "/usr/bin/deepin-music" "$out/bin/deepin-music"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
pkg-config
|
||||||
|
qttools
|
||||||
|
wrapQtAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
dtkwidget
|
||||||
|
qt5platform-plugins
|
||||||
|
dde-qt-dbus-factory
|
||||||
|
udisks2-qt5
|
||||||
|
qtmpris
|
||||||
|
qtdbusextended
|
||||||
|
qtmultimedia
|
||||||
|
kcodecs
|
||||||
|
ffmpeg
|
||||||
|
libvlc
|
||||||
|
libcue
|
||||||
|
taglib
|
||||||
|
gsettings-qt
|
||||||
|
SDL2
|
||||||
|
gtest
|
||||||
|
] ++ (with gst_all_1; [
|
||||||
|
gstreamer
|
||||||
|
gst-plugins-base
|
||||||
|
gst-plugins-good
|
||||||
|
]);
|
||||||
|
|
||||||
|
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||||
|
qtWrapperArgs = [
|
||||||
|
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||||
|
];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DVERSION=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Awesome music player with brilliant and tweakful UI Deepin-UI based";
|
||||||
|
homepage = "https://github.com/linuxdeepin/deepin-music";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = teams.deepin.members;
|
||||||
|
};
|
||||||
|
}
|
|
@ -42,6 +42,7 @@ let
|
||||||
deepin-draw = callPackage ./apps/deepin-draw { };
|
deepin-draw = callPackage ./apps/deepin-draw { };
|
||||||
deepin-editor = callPackage ./apps/deepin-editor { };
|
deepin-editor = callPackage ./apps/deepin-editor { };
|
||||||
deepin-image-viewer = callPackage ./apps/deepin-image-viewer { };
|
deepin-image-viewer = callPackage ./apps/deepin-image-viewer { };
|
||||||
|
deepin-music = callPackage ./apps/deepin-music { };
|
||||||
deepin-picker = callPackage ./apps/deepin-picker { };
|
deepin-picker = callPackage ./apps/deepin-picker { };
|
||||||
deepin-terminal = callPackage ./apps/deepin-terminal { };
|
deepin-terminal = callPackage ./apps/deepin-terminal { };
|
||||||
deepin-reader = callPackage ./apps/deepin-reader { };
|
deepin-reader = callPackage ./apps/deepin-reader { };
|
||||||
|
|
Loading…
Reference in a new issue