2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, writeText, erlang }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
shell = drv: stdenv.mkDerivation {
|
|
|
|
name = "interactive-shell-${drv.name}";
|
|
|
|
buildInputs = [ drv ];
|
|
|
|
};
|
|
|
|
|
|
|
|
pkg = self: stdenv.mkDerivation {
|
2021-10-06 13:57:05 +00:00
|
|
|
pname = "webdriver";
|
|
|
|
version = "0.pre+unstable=2015-02-08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-10-06 13:57:05 +00:00
|
|
|
owner = "Quviq";
|
|
|
|
repo = "webdrv";
|
|
|
|
rev = "7ceaf1f67d834e841ca0133b4bf899a9fa2db6bb";
|
|
|
|
sha256 = "1pq6pmlr6xb4hv2fvmlrvzd8c70kdcidlgjv4p8n9pwvkif0cb87";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
setupHook = writeText "setupHook.sh" ''
|
|
|
|
addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ erlang ];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)/lib/erlang/lib" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "WebDriver implementation in Erlang";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Quviq/webdrv";
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ ericbmerritt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
env = shell self;
|
|
|
|
};
|
|
|
|
|
2021-10-06 13:57:05 +00:00
|
|
|
};
|
2021-02-05 17:12:51 +00:00
|
|
|
in lib.fix pkg
|