firefox-esr: fix build after 574a6d34d2

We're now using only newer versions that have ./configure in the root.
${pname} isn't the correct directory name for esr versions.
This commit is contained in:
Vladimír Čunát 2016-03-26 08:26:45 +01:00
parent 45a2d9e177
commit ec4685cf70

View File

@ -81,13 +81,9 @@ common = { pname, version, sha256 }: stdenv.mkDerivation rec {
preConfigure = preConfigure =
'' ''
configureScript="$(realpath ./configure)"
mkdir ../objdir mkdir ../objdir
cd ../objdir cd ../objdir
if [ -e ../${pname}-${version} ]; then
configureScript=../${pname}-${version}/configure
else
configureScript=../mozilla-*/configure
fi
''; '';
preInstall = preInstall =