phantomjs2: fix evaluation and refactor
The error was due to the fact that with-introduced bindings have lower priority and we do have `darwin` in scope already. Fixes #12350. Closes #12351. (A slightly different fix. I chose this to lower the risk of people re-introducing the mistake.)
This commit is contained in:
parent
e6a892bb55
commit
cea8ee50c7
|
@ -94,7 +94,7 @@ in stdenv.mkDerivation rec {
|
||||||
$out/bin/phantomjs
|
$out/bin/phantomjs
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Headless WebKit with JavaScript API";
|
description = "Headless WebKit with JavaScript API";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
PhantomJS2 is a headless WebKit with JavaScript API.
|
PhantomJS2 is a headless WebKit with JavaScript API.
|
||||||
|
@ -109,9 +109,9 @@ in stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
homepage = http://phantomjs.org/;
|
homepage = http://phantomjs.org/;
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
|
||||||
maintainers = [ stdenv.lib.maintainers.aflatter ];
|
maintainers = [ maintainers.aflatter ];
|
||||||
platforms = with stdenv.lib.platforms; darwin ++ linux;
|
platforms = platforms.darwin ++ platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue