lollypop: wrap search provider
This commit is contained in:
parent
a25dcb6607
commit
494338e043
@ -1,11 +1,15 @@
|
|||||||
{ stdenv, fetchgit, meson, ninja, pkgconfig, wrapGAppsHook
|
{ stdenv, fetchgit, meson, ninja, pkgconfig
|
||||||
, appstream-glib, desktop-file-utils, gobjectIntrospection
|
, python3, gtk3, gst_all_1, libsecret, libsoup
|
||||||
, python36Packages, gnome3, glib, gst_all_1 }:
|
, appstream-glib, desktop-file-utils, gnome3
|
||||||
|
, gobjectIntrospection, wrapGAppsHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
version = "0.9.522";
|
version = "0.9.522";
|
||||||
name = "lollypop-${version}";
|
name = "lollypop-${version}";
|
||||||
|
|
||||||
|
format = "other";
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://gitlab.gnome.org/World/lollypop";
|
url = "https://gitlab.gnome.org/World/lollypop";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
@ -13,26 +17,30 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0f2brwv884cvmxj644jcj9sg5hix3wvnjy2ndg0fh5cxyqz0kwn5";
|
sha256 = "0f2brwv884cvmxj644jcj9sg5hix3wvnjy2ndg0fh5cxyqz0kwn5";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python36Packages; [
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
appstream-glib
|
appstream-glib
|
||||||
desktop-file-utils
|
desktop-file-utils
|
||||||
gobjectIntrospection
|
gobjectIntrospection
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
python36Packages.python
|
|
||||||
pkgconfig
|
pkgconfig
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
wrapPython
|
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ glib ] ++ (with gnome3; [
|
buildInputs = with gst_all_1; [
|
||||||
gsettings-desktop-schemas gtk3 libsecret libsoup totem-pl-parser
|
gnome3.totem-pl-parser
|
||||||
]) ++ (with gst_all_1; [
|
gst-libav
|
||||||
gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly
|
gst-plugins-bad
|
||||||
|
gst-plugins-base
|
||||||
|
gst-plugins-good
|
||||||
|
gst-plugins-ugly
|
||||||
gstreamer
|
gstreamer
|
||||||
]);
|
gtk3
|
||||||
|
libsecret
|
||||||
|
libsoup
|
||||||
|
];
|
||||||
|
|
||||||
pythonPath = with python36Packages; [
|
pythonPath = with python3.pkgs; [
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
gst-python
|
gst-python
|
||||||
pillow
|
pillow
|
||||||
@ -42,11 +50,14 @@ stdenv.mkDerivation rec {
|
|||||||
pylast
|
pylast
|
||||||
];
|
];
|
||||||
|
|
||||||
postFixup = "wrapPythonPrograms";
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
chmod +x ./meson_post_install.py
|
chmod +x meson_post_install.py
|
||||||
patchShebangs ./meson_post_install.py
|
patchShebangs meson_post_install.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
buildPythonPath "$out/libexec/lollypop-sp $pythonPath"
|
||||||
|
patchPythonScript "$out/libexec/lollypop-sp"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user