1
0
Fork 0
nix-overlay/packages/phantomjs.nix
Daniel Kempkens 3365694f92
All checks were successful
Build / build-amd64-linux (push) Successful in 28s
Build / build-arm64-linux (push) Successful in 47s
aerospace: init
2024-06-07 14:26:20 +02:00

38 lines
823 B
Nix

{ pkgs, lib }:
pkgs.stdenvNoCC.mkDerivation rec {
pname = "phantomjs";
version = "2.1.1";
src = pkgs.fetchurl {
url = "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${version}-macosx.zip";
sha256 = "U4z0iCGasn4wnq/GKeK87pl2mQ/pCx7DNPVBd5FQ+ME=";
};
nativeBuildInputs = with pkgs; [ unzip ];
unpackPhase = ''
unzip $src
'';
dontStrip = true;
installPhase = ''
runHook preInstall
install -D phantomjs-${version}-macosx/bin/phantomjs $out/bin/phantomjs
runHook postInstall
'';
doInstallCheck = true;
installCheckPhase = ''
$out/bin/phantomjs --version
'';
meta = with lib; {
description = "Scriptable Headless WebKit";
homepage = "https://github.com/ariya/phantomjs";
license = licenses.bsd3;
platforms = [ "x86_64-darwin" ];
};
}