mtools: add update script
This commit is contained in:
parent
5233468f3b
commit
dbd2e95148
@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
doCheck = true;
|
||||
|
||||
passthru = {
|
||||
updateScript = ./update.sh;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.gnu.org/software/mtools/";
|
||||
description = "Utilities to access MS-DOS disks";
|
||||
|
6
pkgs/tools/filesystems/mtools/update.sh
Executable file
6
pkgs/tools/filesystems/mtools/update.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl common-updater-scripts
|
||||
set -eu -o pipefail
|
||||
|
||||
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)"
|
||||
update-source-version mtools "$version"
|
Loading…
Reference in New Issue
Block a user