Unverified Commit cb634f04 authored by Emily's avatar Emily Committed by GitHub
Browse files

mpvScripts.mpv-notify-send: 0-unstable-2020-02-24 -> 0-unstable-2024-07-11, modernise (#338180)

parents 86fb5cc1 e9f0695f
Loading
Loading
Loading
Loading
+10 −19
Original line number Diff line number Diff line
@@ -9,37 +9,28 @@

buildLua rec {
  pname = "mpv-notify-send";
  version = "0-unstable-2020-02-24";
  version = "0-unstable-2024-07-11";

  src = fetchFromGitHub {
    owner = "emilazy";
    repo = pname;
    rev = "a2bab8b2fd8e8d14faa875b5cc3a73f1276cd88a";
    sha256 = "sha256-EwVkhyB87TJ3i9xJmmZMSTMUKvfbImI1S+y1vgRWbDk=";
    owner = "Parranoh";
    repo = "mpv-notify-send";
    rev = "d98d9fe566b222c5b909e3905e9e201eaec34959";
    hash = "sha256-H8WIKfQnle27eiwnz2sxC8D1EwQplY4N7Qg5+c1e/uU=";
  };

  patches = [
    # show title of online videos instead of url
    (fetchpatch {
      name = "6.patch"; # https://github.com/emilazy/mpv-notify-send/pull/6
      url = "https://github.com/emilazy/mpv-notify-send/commit/948347e14890e15e89cd1e069beb1140e2d01dce.patch";
      hash = "sha256-7aXQ8qeqG4yX0Uyn09xCIESnwPZsb6Frd7C49XgbpFw=";
    })
  ];

  passthru.extraWrapperArgs = [
    "--prefix"
    "PATH"
    ":"
    (lib.makeBinPath libnotify)
    (lib.makeBinPath [ libnotify ])
  ];

  passthru.updateScript = unstableGitUpdater { };

  meta = with lib; {
  meta = {
    description = "Lua script for mpv to send notifications with notify-send";
    homepage = "https://github.com/emilazy/mpv-notify-send";
    license = licenses.wtfpl;
    maintainers = with maintainers; [ r3n3gad3p3arl ];
    homepage = "https://github.com/Parranoh/mpv-notify-send";
    license = lib.licenses.wtfpl;
    maintainers = with lib.maintainers; [ r3n3gad3p3arl ];
  };
}