forked from mirrors/nixpkgs
filebot: add passthru.updateScript
This commit is contained in:
parent
6091ca33eb
commit
07404f6de2
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue