mendeley: 1.17.13 -> 1.18, touchup update script

(support "1.18" instead of "1.18.0")
This commit is contained in:
Will Dietz 2018-04-24 12:25:43 -05:00
parent 51a345c6bb
commit 866940303c
2 changed files with 5 additions and 5 deletions

View File

@ -44,14 +44,14 @@ let
then "i386"
else "amd64";
shortVersion = "1.17.13-stable";
shortVersion = "1.18-stable";
version = "${shortVersion}_${arch}";
url = "http://desktop-download.mendeley.com/download/apt/pool/main/m/mendeleydesktop/mendeleydesktop_${version}.deb";
sha256 = if stdenv.system == arch32
then "0q4x62k00whmq8lskphpcxc610cvclxzcr5k0v7pxjxs9sx5yx43"
else "01ylyily1hip35z0d4qkdpbzp5yn4r015psc5773xsqlgrnlwjm3";
then "046v1j4sc6m0bf89f52zsg8riygrhldplyih5p0cjhcsd45q6fx8"
else "072fppgxhiryb6m1fb4qvq8nbblx88xpknnklygch1sw0lyks69h";
deps = [
qtbase

View File

@ -15,9 +15,9 @@ writeScript "update-mendeley" ''
}
amd64URL=$(follow https://www.mendeley.com/repositories/ubuntu/stable/amd64/mendeleydesktop-latest)
amd64V=$(basename $amd64URL|grep -m1 -o "[0-9]\+\.[0-9]\+\.[0-9]\+")
amd64V=$(basename $amd64URL|grep -m1 -o "[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?")
i386URL=$(follow https://www.mendeley.com/repositories/ubuntu/stable/i386/mendeleydesktop-latest)
i386V=$(basename $i386URL|grep -m1 -o "[0-9]\+\.[0-9]\+\.[0-9]\+")
i386V=$(basename $i386URL|grep -m1 -o "[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?")
echo "amd64 version: $amd64V"
echo "i386 version: $i386V"