diff --git a/srcpkgs/nano/template b/srcpkgs/nano/template
index 17673e8bef2..3157104a3b8 100644
--- a/srcpkgs/nano/template
+++ b/srcpkgs/nano/template
@@ -1,6 +1,6 @@
 # Template file for 'nano'
 pkgname=nano
-version=2.8.6
+version=2.8.7
 revision=1
 build_style=gnu-configure
 makedepends="file-devel zlib-devel ncurses-devel"
@@ -8,8 +8,8 @@ short_desc="The GNU nano text editor"
 maintainer="Juan RP <xtraeme@voidlinux.eu>"
 homepage="https://www.nano-editor.org/"
 license="GPL-3"
-distfiles="https://www.nano-editor.org/dist/v${version%.*}/$pkgname-$version.tar.xz"
-checksum=9a46962a3ae59db922467a095217ed23280b42d80640f932f3a59ba2a6a85776
+distfiles="https://www.nano-editor.org/dist/v${version%.*}/nano-$version.tar.xz"
+checksum=fbe31746958698d73c6726ee48ad8b0612697157961a2e9aaa83b4aa53d1165a
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CFLAGS="-DREG_STARTEND=0";;