nixpkgs/pkgs/applications/audio/mpdevil/default.nix

54 lines
1.2 KiB
Nix
Raw Normal View History

2021-03-08 15:01:41 +00:00
{ lib, fetchFromGitHub
, python3Packages
, gdk-pixbuf, glib, gobject-introspection, gtk3
, libnotify
2021-03-08 15:01:41 +00:00
, intltool
, wrapGAppsHook }:
python3Packages.buildPythonApplication rec {
pname = "mpdevil";
2021-11-14 05:10:22 +00:00
version = "1.4.1";
2021-03-08 15:01:41 +00:00
src = fetchFromGitHub {
owner = "SoongNoonien";
repo = pname;
rev = "v${version}";
2021-11-14 05:10:22 +00:00
sha256 = "1a5nhlbgi3ahnkcq16c2vgiaghgswy5lxg64pcrlbqssg1pj5gma";
2021-03-08 15:01:41 +00:00
};
nativeBuildInputs = [
glib.dev gobject-introspection gtk3 intltool wrapGAppsHook
];
buildInputs = [
gdk-pixbuf glib libnotify
2021-03-08 15:01:41 +00:00
];
propagatedBuildInputs = with python3Packages; [
beautifulsoup4 distutils_extra mpd2 notify-py pygobject3 requests
];
postInstall = ''
glib-compile-schemas $out/share/glib-2.0/schemas
'';
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
# Prevent double wrapping.
dontWrapGApps = true;
# Otherwise wrapGAppsHook do not pick up the dependencies correctly.
strictDeps = false;
# There aren't any checks.
doCheck = false;
meta = with lib; {
description = "A simple music browser for MPD";
homepage = "https://github.com/SoongNoonien/mpdevil";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ bloomvdomino ];
};
}