From 291eae81ff8a34e1490b56f9f5b622d8b7475f6a Mon Sep 17 00:00:00 2001 From: Olli Helenius Date: Sun, 24 Feb 2019 18:46:58 +0200 Subject: [PATCH] Scrape directory index with curl instead of lynx --- pkgs/development/libraries/aspell/dictionaries.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/aspell/dictionaries.nix b/pkgs/development/libraries/aspell/dictionaries.nix index 172da7e941c..30f801ccbb2 100644 --- a/pkgs/development/libraries/aspell/dictionaries.nix +++ b/pkgs/development/libraries/aspell/dictionaries.nix @@ -83,9 +83,9 @@ let # compares as newer because the versioning scheme has changed. versions=$( echo '['; - lynx -dump "https://ftp.gnu.org/gnu/aspell/dict/${language}/?F=0" | \ - sed -r "s/^ +\* \[[0-9]+\]${filename}-${language}-([A-Za-z0-9_+.-]+)\.tar\.bz2$/\"\1\"/;t;d" | \ - if [ "${language}" = "ca" ]; then grep -v 20040130-1; else cat; fi; \ + curl -s 'https://ftp.gnu.org/gnu/aspell/dict/${language}/?F=0' | \ + sed -r 's/.* href="${filename}-${language}-([A-Za-z0-9_+.-]+)\.tar\.bz2".*/"\1"/;t;d' | \ + if [ '${language}' = "ca" ]; then grep -v 20040130-1; else cat; fi; \ echo ']') # Sort versions in descending order using Nix's and take the first as the latest.