mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 19:08:30 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
32 lines
888 B
Nix
32 lines
888 B
Nix
{ stdenv, fetchurl, autoreconfHook, intltool
|
|
, pythonPackages
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mpDris2";
|
|
version = "0.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/eonpatapon/${pname}/archive/${version}.tar.gz";
|
|
sha256 = "14a3va3929qaq1sp9hs9w4bs6lykdvshkbc58kbsc5nzvlgmrcdn";
|
|
};
|
|
|
|
preConfigure = ''
|
|
intltoolize -f
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ intltool pythonPackages.wrapPython ];
|
|
propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python ];
|
|
pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify mutagen ];
|
|
postInstall = "wrapPythonPrograms";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "MPRIS 2 support for mpd";
|
|
homepage = https://github.com/eonpatapon/mpDris2/;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pjones ];
|
|
};
|
|
}
|