nixpkgs/pkgs/development/tools/geckodriver/default.nix
Alyssa Ross 062210bdff treewide: update cargoSha256 hashes for cargo-vendor upgrade
A recent upgrade of cargo-vendor changed its output slightly, which
broke all cargoSha256 hashes in nixpkgs.
See https://github.com/NixOS/nixpkgs/issues/60668 for more information.

Since then, a few hashes have been fixed in master by hand, but there
were a lot still to do, so I did all of the ones left over with some
scripts I wrote.

The one hash I wasn’t able to update was habitat's, because it’s
currently broken and the build doesn’t get far enough to produce a
hash anyway.
2019-06-01 15:17:52 +00:00

32 lines
775 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, stdenv
, darwin
}:
with rustPlatform;
buildRustPackage rec {
version = "0.22.0";
name = "geckodriver-${version}";
src = fetchFromGitHub {
owner = "mozilla";
repo = "geckodriver";
rev = "v${version}";
sha256 = "12m95lfqwdxs2m5kjh3yrpm9w2li5m8n3fw46a2nkxyfw6c94l4b";
};
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
cargoSha256 = "1pwg35kgn5z2zrlj1dwcbbdmkgmnvfxpxv4klzsxxg4m9xr1pfy4";
meta = with lib; {
description = "Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers";
homepage = https://github.com/mozilla/geckodriver;
license = licenses.mpl20;
maintainers = with maintainers; [ jraygauthier ];
};
}