redis-plus-plus: 1.3.7 -> 1.3.10
[NixPkgs.git] / pkgs / development / beam-modules / webdriver / default.nix
blob131fd03d86dc7ee89d76b2652eae61c1aa955b7f
1 { lib, stdenv, fetchFromGitHub, writeText, erlang }:
3 let
4   shell = drv: stdenv.mkDerivation {
5     name = "interactive-shell-${drv.name}";
6     buildInputs = [ drv ];
7   };
9   pkg = self: stdenv.mkDerivation {
10     pname = "webdriver";
11     version = "0.pre+unstable=2015-02-08";
13     src = fetchFromGitHub {
14       owner = "Quviq";
15       repo = "webdrv";
16       rev = "7ceaf1f67d834e841ca0133b4bf899a9fa2db6bb";
17       sha256 = "1pq6pmlr6xb4hv2fvmlrvzd8c70kdcidlgjv4p8n9pwvkif0cb87";
18     };
20     setupHook = writeText "setupHook.sh" ''
21        addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
22     '';
24     buildInputs = [ erlang ];
26     installFlags = [ "PREFIX=$(out)/lib/erlang/lib" ];
28     meta = {
29       description = "WebDriver implementation in Erlang";
30       license = lib.licenses.mit;
31       homepage = "https://github.com/Quviq/webdrv";
32       maintainers = with lib.maintainers; [ ericbmerritt ];
33     };
35     passthru = {
36       env = shell self;
37     };
39   };
40 in lib.fix pkg