2022-02-20 05:27:41 +00:00
|
|
|
{ lib, rustPlatform, fetchurl, openssl, stdenv, darwin }:
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "elm-test-rs";
|
|
|
|
version = "2.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mpizenberg/elm-test-rs/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "sha256:1manr42w613r9vyji7pxx5gb08jcgkdxv29qqylrqlwxa8d5dcid";
|
|
|
|
};
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
buildInputs = lib.optionals (!stdenv.isDarwin) [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
|
|
Security
|
|
|
|
CoreServices
|
|
|
|
]);
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
cargoSha256 = "sha256:1dpdlzv96kpc25yf5jgsz9qldghyw35x382qpxhkadkn5dryzjvd";
|
|
|
|
|
|
|
|
# Tests perform networking and therefore can't work in sandbox
|
|
|
|
doCheck = false;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fast and portable executable to run your Elm tests";
|
|
|
|
homepage = "https://github.com/mpizenberg/elm-test-rs";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.jpagex ];
|
|
|
|
};
|
2021-12-19 01:06:50 +00:00
|
|
|
}
|