Skip to content

Instantly share code, notes, and snippets.

@matthew-piziak
Created August 18, 2019 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthew-piziak/ba25f902594e25c7844eda1087d60479 to your computer and use it in GitHub Desktop.
Save matthew-piziak/ba25f902594e25c7844eda1087d60479 to your computer and use it in GitHub Desktop.
let
plex-mpv-python = pkgs.python3.withPackages (ps: with ps; [ mpv requests ]);
plex-mpv-rev = "3d332db59580dd76d843689b1809dc0869aa4972";
plex-mpv-shim = pkgs.stdenv.mkDerivation rec {
pname = "plex-mpv-shim";
version = "0.1-${plex-mpv-rev}";
name = "${pname}-${version}";
src = pkgs.fetchFromGitHub {
owner = "iwalton3";
repo = "plex-mpv-shim";
rev = plex-mpv-rev;
sha256 = "06xdp54cxvf5q3i6zhyss2jlbkp46fd9yshyp0ykgc529r35snrc";
};
buildInputs = [ plex-mpv-python ];
installPhase = ''
mkdir -p $out/bin
cp ${src}/mpv-shim.py $out/bin/mpv-shim
chmod +x $out/bin/mpv-shim
'';
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment