Created
August 18, 2019 00:35
-
-
Save matthew-piziak/ba25f902594e25c7844eda1087d60479 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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