1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/tools/audio/mpdris2/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

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 ];
};
}