1{
2 lib,
3 fetchFromGitHub,
4 makeWrapper,
5 socat,
6 stdenv,
7 testers,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "mpvc";
12 version = "1.4-unstable-2024-07-09";
13
14 src = fetchFromGitHub {
15 owner = "gmt4";
16 repo = "mpvc";
17 rev = "966156dacd026cde220951d41c4ac5915cd6ad64";
18 hash = "sha256-/M3xOb0trUaxJGXmV2+sOCbrHGyP4jpyo+S/oBoDkO0=";
19 };
20
21 nativeBuildInputs = [ makeWrapper ];
22
23 buildInputs = [ socat ];
24
25 outputs = [
26 "out"
27 "doc"
28 ];
29
30 makeFlags = [ "PREFIX=$(out)" ];
31
32 installFlags = [ "PREFIX=$(out)" ];
33
34 strictDeps = true;
35
36 postInstall = ''
37 wrapProgram $out/bin/mpvc --prefix PATH : "${lib.getBin socat}/"
38 '';
39
40 # This is not Archlinux :)
41 postFixup = ''
42 rm -r $out/share/licenses
43 rmdir $out/share || true
44 '';
45
46 meta = {
47 homepage = "https://github.com/gmt4/mpvc";
48 description = "Mpc-like control interface for mpv";
49 license = lib.licenses.mit;
50 mainProgram = "mpvc";
51 maintainers = with lib.maintainers; [ ];
52 platforms = lib.platforms.linux;
53 };
54})