2019-07-16 10:37:57 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, glib, pcre, json-glib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wmc-mpris";
|
2019-10-08 13:04:31 +00:00
|
|
|
version = "0.1.0";
|
2019-07-16 10:37:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "f1u77y";
|
|
|
|
repo = pname;
|
2019-10-08 13:04:31 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1zcnaf9g55cbj9d2zlsr0i15qh0w9gp5jmxkm6dcp1j6yd7j3ymc";
|
2019-07-16 10:37:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [ glib pcre json-glib ];
|
|
|
|
cmakeFlags = [
|
2019-09-03 16:38:57 +00:00
|
|
|
"-DCHROMIUM_MANIFEST_DESTINATION=${placeholder "out"}/etc/chromium/native-messaging-hosts"
|
|
|
|
"-DCHROME_MANIFEST_DESTINATION=${placeholder "out"}/etc/opt/chrome/native-messaging-hosts"
|
|
|
|
"-DFIREFOX_MANIFEST_DESTINATION=${placeholder "out"}/lib/mozilla/native-messaging-hosts"
|
2019-07-16 10:37:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/f1u77y/wmc-mpris";
|
|
|
|
description = "MPRIS proxy for usage with 'Web Media Controller' web extension";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|