nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 31 lines 754 B view raw
1{ lib, stdenv, socat, fetchFromGitHub, makeWrapper }: 2 3stdenv.mkDerivation rec { 4 pname = "mpvc"; 5 version = "1.3"; 6 7 src = fetchFromGitHub { 8 owner = "lwilletts"; 9 repo = "mpvc"; 10 rev = version; 11 sha256 = "sha256-wPETEG0BtNBEj3ZyP70byLzIP+NMUKbnjQ+kdvrvK3s="; 12 }; 13 14 makeFlags = [ "PREFIX=$(out)" ]; 15 installFlags = [ "PREFIX=$(out)" ]; 16 17 postInstall = '' 18 wrapProgram $out/bin/mpvc --prefix PATH : "${socat}/bin/" 19 ''; 20 21 nativeBuildInputs = [ makeWrapper ]; 22 buildInputs = [ socat ]; 23 24 meta = with lib; { 25 description = "A mpc-like control interface for mpv"; 26 homepage = "https://github.com/lwilletts/mpvc"; 27 license = licenses.mit; 28 maintainers = [ maintainers.neeasade ]; 29 platforms = platforms.linux; 30 }; 31}