mtools: add update script

authored by Michael Adler and committed by Emery Hemingway dbd2e951 5233468f

+10
+4
pkgs/tools/filesystems/mtools/default.nix
··· 18 18 19 19 doCheck = true; 20 20 21 + passthru = { 22 + updateScript = ./update.sh; 23 + }; 24 + 21 25 meta = with lib; { 22 26 homepage = "https://www.gnu.org/software/mtools/"; 23 27 description = "Utilities to access MS-DOS disks";
+6
pkgs/tools/filesystems/mtools/update.sh
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p curl common-updater-scripts 3 + set -eu -o pipefail 4 + 5 + version="$(curl -s --list-only ftp://ftp.gnu.org/gnu/mtools/ | sed 's/^.*-\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/' | sort -n | uniq | tail -n1)" 6 + update-source-version mtools "$version"