mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
lollypop-portal: add python3
This commit is contained in:
parent
bc1911e96e
commit
eeb9e9473f
@ -1,11 +1,14 @@
|
|||||||
{ stdenv, fetchFromGitLab, meson, ninja, pkgconfig
|
{ stdenv, fetchFromGitLab, meson, ninja, pkgconfig
|
||||||
, python36Packages, gnome3, gst_all_1, gtk3, libnotify
|
, python3, gnome3, gst_all_1, gtk3, libnotify
|
||||||
, kid3, easytag, gobjectIntrospection, wrapGAppsHook }:
|
, kid3, easytag, gobjectIntrospection, wrapGAppsHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
name = "lollypop-portal-${version}";
|
name = "lollypop-portal-${version}";
|
||||||
version = "0.9.7";
|
version = "0.9.7";
|
||||||
|
|
||||||
|
format = "other";
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.gnome.org";
|
domain = "gitlab.gnome.org";
|
||||||
owner = "gnumdk";
|
owner = "gnumdk";
|
||||||
@ -19,33 +22,31 @@ stdenv.mkDerivation rec {
|
|||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
pkgconfig
|
pkgconfig
|
||||||
python36Packages.wrapPython
|
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gnome3.totem-pl-parser
|
|
||||||
gnome3.libsecret
|
|
||||||
gnome3.gnome-settings-daemon
|
gnome3.gnome-settings-daemon
|
||||||
|
gnome3.libsecret
|
||||||
gst_all_1.gstreamer
|
gnome3.totem-pl-parser
|
||||||
gst_all_1.gst-plugins-base
|
gst_all_1.gst-plugins-base
|
||||||
|
gst_all_1.gstreamer
|
||||||
gtk3
|
gtk3
|
||||||
libnotify
|
libnotify
|
||||||
|
python3
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonPath = with python36Packages; [
|
pythonPath = with python3.pkgs; [
|
||||||
pygobject3
|
|
||||||
pydbus
|
|
||||||
pycairo
|
pycairo
|
||||||
|
pydbus
|
||||||
|
pygobject3
|
||||||
];
|
];
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
buildPythonPath "$out/libexec/lollypop-portal $pythonPath"
|
buildPythonPath "$out/libexec/lollypop-portal $pythonPath"
|
||||||
|
patchPythonScript "$out/libexec/lollypop-portal"
|
||||||
|
|
||||||
gappsWrapperArgs+=(
|
gappsWrapperArgs+=(
|
||||||
--prefix PYTHONPATH : "$program_PYTHONPATH"
|
|
||||||
--prefix PATH : "${stdenv.lib.makeBinPath [ easytag kid3 ]}"
|
--prefix PATH : "${stdenv.lib.makeBinPath [ easytag kid3 ]}"
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user