Adapted from older instructions.
Download nightly for AMD64 Linux
$ mkdir /opt/firefoxnightly
$ sudo chown -R $USER:$USER /opt/firefoxnightly
$ tar -xvjf ~/Downloads/firefox-NN.0a1.en-US.linux-x86_64.tar.bz2 -C /opt/firefoxnightly
Create nightly.desktop
in home directory.
Validate file
$ desktop-file-validate nightly.desktop
Install with
$ desktop-file-install --dir=.local/share/applications nightly.desktop