···11-{ stdenv, lib, fetchurl, freetype, fontconfig, openssl, unzip }:
22-33-let
44- platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
55-in
66-77-stdenv.mkDerivation rec {
88- pname = "phantomjs";
99- version = "1.9.8";
1010-1111- # I chose to use the binary build for now.
1212- # The source version is quite nasty to compile
1313- # because it has bundled a lot of external libraries (like QT and Webkit)
1414- # and no easy/nice way to use the system versions of these
1515-1616- src = if stdenv.hostPlatform.system == "i686-linux" then
1717- fetchurl {
1818- url = "https://bitbucket.org/ariya/phantomjs/downloads/${pname}-${version}-linux-i686.tar.bz2";
1919- sha256 = "11fzmssz9pqf3arh4f36w06sl2nyz8l9h8iyxyd7w5aqnq5la0j1";
2020- }
2121- else
2222- if stdenv.hostPlatform.system == "x86_64-linux" then
2323- fetchurl {
2424- url = "https://bitbucket.org/ariya/phantomjs/downloads/${pname}-${version}-linux-x86_64.tar.bz2";
2525- sha256 = "0fhnqxxsxhy125fmif1lwgnlhfx908spy7fx9mng4w72320n5nd1";
2626- }
2727- else # x86_64-darwin
2828- fetchurl {
2929- url = "https://bitbucket.org/ariya/phantomjs/downloads/${pname}-${version}-macosx.zip";
3030- sha256 = "0j0aq8dgzmb210xdrh0v3d4nblskl3zsckl8bzf1a603wcx085cg";
3131- };
3232-3333- nativeBuildInputs = lib.optional stdenv.isDarwin unzip;
3434-3535- buildPhase = lib.optionalString (!stdenv.isDarwin) ''
3636- patchelf \
3737- --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
3838- --set-rpath "${lib.makeLibraryPath [ freetype fontconfig stdenv.cc.cc stdenv.cc.cc openssl ]}" \
3939- bin/phantomjs
4040- '';
4141-4242- dontPatchELF = true;
4343- dontStrip = true;
4444-4545- installPhase = ''
4646- mkdir -p $out/share/doc/phantomjs
4747- cp -a bin $out
4848- cp -a ChangeLog examples LICENSE.BSD README.md third-party.txt $out/share/doc/phantomjs
4949- '';
5050-5151- meta = {
5252- description = "Headless WebKit with JavaScript API";
5353- longDescription = ''
5454- PhantomJS is a headless WebKit with JavaScript API.
5555- It has fast and native support for various web standards:
5656- DOM handling, CSS selector, JSON, Canvas, and SVG.
5757-5858- PhantomJS is an optimal solution for:
5959- - Headless Website Testing
6060- - Screen Capture
6161- - Page Automation
6262- - Network Monitoring
6363- '';
6464-6565- homepage = "https://phantomjs.org/";
6666- license = lib.licenses.bsd3;
6767-6868- maintainers = [ lib.maintainers.bluescreen303 ];
6969- inherit platforms;
7070- };
7171-}
+2
pkgs/top-level/aliases.nix
···849849 pgp-tools = signing-party; # Added 2017-03-26
850850 pg_tmp = ephemeralpg; # Added 2018-01-16
851851852852+ phantomjs = throw "phantomjs 1.9.8 has been dropped due to lack of maintenance and security issues"; # Added 2022-02-20
853853+852854 # Obsolete PHP version aliases
853855 php73 = throw "php73 has been dropped due to the lack of maintanence from upstream for future releases."; # Added 2021-06-03
854856 php73Packages = php73; # Added 2021-06-03