mpdris2: use python3 for #74295
Also use fetchFromGitHub for hash stability. Co-authored-by: worldofpeace <worldofpeace@protonmail.ch>
This commit is contained in:
parent
a0c5076861
commit
db091af228
@ -1,31 +1,55 @@
|
|||||||
{ stdenv, fetchurl, autoreconfHook, intltool
|
{ stdenv
|
||||||
, pythonPackages
|
, autoreconfHook
|
||||||
|
, fetchFromGitHub
|
||||||
|
, glib
|
||||||
|
, gobject-introspection
|
||||||
|
, intltool
|
||||||
|
, libnotify
|
||||||
|
, python3
|
||||||
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "mpDris2";
|
pname = "mpDris2";
|
||||||
version = "0.8";
|
version = "0.8";
|
||||||
|
format = "other";
|
||||||
|
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/eonpatapon/${pname}/archive/${version}.tar.gz";
|
owner = "eonpatapon";
|
||||||
sha256 = "14a3va3929qaq1sp9hs9w4bs6lykdvshkbc58kbsc5nzvlgmrcdn";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "048b8acsd1b8kcxzd9fsh5p9g2an9c4rznicfcpyrsjz5syv894h";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
intltoolize -f
|
intltoolize -f
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ intltool pythonPackages.wrapPython ];
|
autoreconfHook
|
||||||
propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python ];
|
gobject-introspection
|
||||||
pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify mutagen ];
|
intltool
|
||||||
postInstall = "wrapPythonPrograms";
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
libnotify
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
dbus-python
|
||||||
|
mpd2
|
||||||
|
mutagen
|
||||||
|
pygobject3
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "MPRIS 2 support for mpd";
|
description = "MPRIS 2 support for mpd";
|
||||||
homepage = https://github.com/eonpatapon/mpDris2/;
|
homepage = https://github.com/eonpatapon/mpDris2/;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
|
maintainers = with maintainers; [];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ pjones ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6650,7 +6650,7 @@ in
|
|||||||
thin-provisioning-tools = callPackage ../tools/misc/thin-provisioning-tools { };
|
thin-provisioning-tools = callPackage ../tools/misc/thin-provisioning-tools { };
|
||||||
|
|
||||||
tiled = libsForQt5.callPackage ../applications/editors/tiled { };
|
tiled = libsForQt5.callPackage ../applications/editors/tiled { };
|
||||||
|
|
||||||
tiledb = callPackage ../development/libraries/tiledb { };
|
tiledb = callPackage ../development/libraries/tiledb { };
|
||||||
|
|
||||||
timemachine = callPackage ../applications/audio/timemachine { };
|
timemachine = callPackage ../applications/audio/timemachine { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user