My Greatgrandfather served with the 2nd Derbys from Feb 1881 until Feb 1890 followed by 3 years in the reserves - and served in Egypt. The regiment was indeed at Gibraltar being 'seasoned' before going onto India - they had a good proportion of young men and the view at the time was that a period at Gibraltar would do them good. So the move to Egypt came as something as a deture as they then went straight onto India in October 1882. They're role was to garrison Alexandria, but they or certainly some of them saw some action - a Pte. French being killed in one local action. I have seem a medal pair engraved to one 2nd Derbys soldier bearing a Tel El Kebir clasp, which although the regiment wasn't there I guess it was possible there were attachments. There is a small book, and rather rare, "The Derbyshire Regiment in Egypt" which I have that describes their time in and around Alexandria - difficult to find and pricey. Also the official history of the Sherwood Forsters, 2 volumes,(up to 1914 I seem to recall - I also have these but not with me just now) also describes the the history of the 95th ( as the second battalion was known before the Army reforms of 1881) but also their move to Gibraltar and subsequently Egypt and then India.
If you have any specific questions I'd be happy to see if I can help - PM me.