2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, socat, fetchFromGitHub, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "mpvc";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "1.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-09-14 18:05:37 +00:00
|
|
|
owner = "lwilletts";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "mpvc";
|
2022-09-14 18:05:37 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-wPETEG0BtNBEj3ZyP70byLzIP+NMUKbnjQ+kdvrvK3s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/mpvc --prefix PATH : "${socat}/bin/"
|
|
|
|
'';
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ socat ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A mpc-like control interface for mpv";
|
2022-09-14 18:05:37 +00:00
|
|
|
homepage = "https://github.com/lwilletts/mpvc";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.neeasade ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|