1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 openssl,
6 stdenv,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "elm-test-rs";
11 version = "3.0.1";
12
13 src = fetchFromGitHub {
14 owner = "mpizenberg";
15 repo = "elm-test-rs";
16 tag = "v${version}";
17 hash = "sha256-NGonWCOLxON1lxsgRlWgY67TtIJYsLPXi96NcxF4Tso=";
18 };
19
20 buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [ openssl ];
21
22 cargoHash = "sha256-qs6ujXl4j9gCEDQV5i47oa0eaqWZf4NqsVbNDsao5fI=";
23
24 # Tests perform networking and therefore can't work in sandbox
25 doCheck = false;
26
27 meta = {
28 description = "Fast and portable executable to run your Elm tests";
29 mainProgram = "elm-test-rs";
30 homepage = "https://github.com/mpizenberg/elm-test-rs";
31 license = lib.licenses.bsd3;
32 maintainers = with lib.maintainers; [
33 jpagex
34 zupo
35 ];
36 };
37}