diff options
author | Felix Schröter <dev@felschr.com> | 2023-05-13 23:56:46 +0200 |
---|---|---|
committer | Felix Schröter <dev@felschr.com> | 2023-05-31 14:42:49 +0200 |
commit | 07404f6de202acc289ebf25cbab31ad77fd27153 (patch) | |
tree | 766776b93f5919f6edfcc33d2cb6566962411a0e /pkgs/applications/video/filebot/default.nix | |
parent | 6091ca33eb3e6b3100d6d2319e0553c7316b54ea (diff) | |
download | nixpkgs-07404f6de202acc289ebf25cbab31ad77fd27153.tar nixpkgs-07404f6de202acc289ebf25cbab31ad77fd27153.tar.gz nixpkgs-07404f6de202acc289ebf25cbab31ad77fd27153.tar.bz2 nixpkgs-07404f6de202acc289ebf25cbab31ad77fd27153.tar.lz nixpkgs-07404f6de202acc289ebf25cbab31ad77fd27153.tar.xz nixpkgs-07404f6de202acc289ebf25cbab31ad77fd27153.tar.zst nixpkgs-07404f6de202acc289ebf25cbab31ad77fd27153.zip |
filebot: add passthru.updateScript
Diffstat (limited to 'pkgs/applications/video/filebot/default.nix')
-rw-r--r-- | pkgs/applications/video/filebot/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/video/filebot/default.nix b/pkgs/applications/video/filebot/default.nix index 09f99f400aa..ad7b12bfa33 100644 --- a/pkgs/applications/video/filebot/default.nix +++ b/pkgs/applications/video/filebot/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchurl, coreutils, openjdk17, makeWrapper, autoPatchelfHook , zlib, libzen, libmediainfo, curlWithGnuTls, libmms, glib +, genericUpdater, writeShellScript }: let @@ -43,6 +44,13 @@ in stdenv.mkDerivation rec { ln -s $out/opt/filebot.sh $out/bin/filebot ''; + passthru.updateScript = genericUpdater { + versionLister = writeShellScript "filebot-versionLister" '' + curl -s https://www.filebot.net \ + | sed -rne 's,^.*FileBot_([0-9]*\.[0-9]+\.[0-9]+)-portable.tar.xz.*,\1,p' + ''; + }; + meta = with lib; { description = "The ultimate TV and Movie Renamer"; longDescription = '' |