about summary refs log tree commit diff
path: root/pkgs/applications/misc/mpvc/default.nix
blob: 5182b53faa9a4db1c95907b6ba39af76ad91f6d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, socat, fetchFromGitHub, makeWrapper }:

stdenv.mkDerivation rec {
  pname = "mpvc";
  version = "1.3";

  src = fetchFromGitHub {
    owner = "lwilletts";
    repo = "mpvc";
    rev = version;
    sha256 = "sha256-wPETEG0BtNBEj3ZyP70byLzIP+NMUKbnjQ+kdvrvK3s=";
  };

  makeFlags = [ "PREFIX=$(out)" ];
  installFlags = [ "PREFIX=$(out)" ];

  postInstall = ''
    wrapProgram $out/bin/mpvc --prefix PATH : "${socat}/bin/"
  '';

  nativeBuildInputs = [ makeWrapper ];
  buildInputs = [ socat ];

  meta = with lib; {
    description = "Mpc-like control interface for mpv";
    mainProgram = "mpvc";
    homepage = "https://github.com/lwilletts/mpvc";
    license = licenses.mit;
    maintainers = [ maintainers.neeasade ];
    platforms = platforms.linux;
  };
}