Apparently the BB repo doesn't exist anymore ... (due to policiy change?)
But the following still works :)
sudo make install
__ \ | | __| _ \ Pure 0.7.1 (x86_64-pc-linux-gnu)
| | | | | __/ Copyright (c) 2008-2018 by Albert Graef
.__/ \__,_|_| \___| (Type 'help' for help, 'help copying'
_| for license information.)
Loaded prelude from /usr/local/lib/pure/prelude.pure.
> using reduce;
Reduce (Free CSL version), 03-Aug-26 ...
> simplify $ df(x^n*sin(exp(-p*x^2),x);
> simplify $ df(x^n*sin(exp(-p*x^2)),x);
(-2*x^n*cos (1/e^(p*x^2))*p*x^2+x^n*e^(p*x^2)*sin (1/e^(p*x^2))*n)/(e^(p*x^2)*x)