Merge pull request #267726 from zupo/update/elm-test-rs

elmPackages.elm-test-rs: 2.0 -> 3.0
This commit is contained in:
Masum Reza 2024-07-06 20:07:53 +05:30 committed by GitHub
commit 357b1dc580
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1061 additions and 16 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,31 +1,50 @@
{ lib, rustPlatform, fetchurl, openssl, stdenv, darwin }:
{
lib,
rustPlatform,
fetchFromGitHub,
openssl,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "elm-test-rs";
version = "2.0";
version = "3.0";
src = fetchurl {
url = "https://github.com/mpizenberg/elm-test-rs/archive/v${version}.tar.gz";
sha256 = "sha256:1manr42w613r9vyji7pxx5gb08jcgkdxv29qqylrqlwxa8d5dcid";
src = fetchFromGitHub {
owner = "mpizenberg";
repo = "elm-test-rs";
rev = "refs/tags/v${version}";
hash = "sha256-l3RV+j3wAQ88QGNXLILp7YiUpdk7bkN25Y723pDZw48=";
};
buildInputs = lib.optionals (!stdenv.isDarwin) [
openssl
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
Security
CoreServices
]);
cargoSha256 = "sha256:1dpdlzv96kpc25yf5jgsz9qldghyw35x382qpxhkadkn5dryzjvd";
buildInputs =
lib.optionals (!stdenv.isDarwin) [ openssl ]
++ lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
CoreServices
]
);
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"pubgrub-dependency-provider-elm-0.1.0" = "sha256-00J5XZfmuB4/fgB06aaXrRjdmOpOsSwA3dC3Li1m2Cc=";
};
};
# Tests perform networking and therefore can't work in sandbox
doCheck = false;
meta = with lib; {
meta = {
description = "Fast and portable executable to run your Elm tests";
mainProgram = "elm-test-rs";
homepage = "https://github.com/mpizenberg/elm-test-rs";
license = licenses.bsd3;
maintainers = [ maintainers.jpagex ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
jpagex
zupo
];
};
}