depot/third_party/nixpkgs/pkgs/desktops/deepin/apps/deepin-music/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

95 lines
1.7 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, wrapQtAppsHook
, dtkwidget
, qt5integration
, qt5platform-plugins
, dde-qt-dbus-factory
, udisks2-qt5
, qtmpris
, qtdbusextended
, qtmultimedia
, qttools
, kcodecs
, ffmpeg
, libvlc
, libpulseaudio
, libcue
, taglib
, gsettings-qt
, SDL2
, gtest
, qtbase
, gst_all_1
}:
stdenv.mkDerivation rec {
pname = "deepin-music";
version = "6.2.28";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-rSaB8kIbpyPuhw3vWLWlXgY6xJpxLL8DktgcBoca0L0=";
};
postPatch = ''
substituteInPlace src/music-player/CMakeLists.txt \
--replace "/usr/include/vlc" "${libvlc}/include/vlc"
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
qt5integration
qt5platform-plugins
dde-qt-dbus-factory
udisks2-qt5
qtmpris
qtdbusextended
qtmultimedia
kcodecs
ffmpeg
libvlc
libpulseaudio
libcue
taglib
gsettings-qt
SDL2
gtest
] ++ (with gst_all_1; [
gstreamer
gst-plugins-base
gst-plugins-good
]);
cmakeFlags = [
"-DVERSION=${version}"
];
strictDeps = true;
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;
};
}