Unverified Commit ed7c262f authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #229742 from figsoda/lunatic

lunatic: 0.12.0 -> 0.13.2
parents a56b85eb f450ee14
Loading
Loading
Loading
Loading
+21 −6
Original line number Diff line number Diff line
{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }:
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, darwin
}:

rustPlatform.buildRustPackage rec {
  pname = "lunatic";
  version = "0.12.0";
  version = "0.13.2";

  src = fetchFromGitHub {
    owner = "lunatic-solutions";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-7fxccufM5tunbutABEtsa6++OLTsS72oA219zvf+KN8=";
    hash = "sha256-uMMssZaPDZn3bOtQIho+GvUCPmzRllv7eJ+SJuKaYtg=";
  };

  cargoSha256 = "sha256-sHSQUvHTwyqMrGmwpblqpS4HfFiWGb+70a1uloDu2wY=";
  cargoHash = "sha256-ALjlQsxmZVREyi3ZGMJMv/38kkMjYh+hTSr/0avYJVs=";

  buildInputs = lib.optional stdenv.isDarwin Security;
  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    openssl
  ] ++ lib.optionals stdenv.isDarwin [
    darwin.apple_sdk.frameworks.Security
  ];

  checkFlags = [
    # requires simd support which is not always available on hydra
@@ -23,7 +38,7 @@ rustPlatform.buildRustPackage rec {
  meta = with lib; {
    description = "An Erlang inspired runtime for WebAssembly";
    homepage = "https://lunatic.solutions";
    changelog = "https://github.com/lunatic-solutions/lunatic/blob/v${version}/RELEASES.md";
    changelog = "https://github.com/lunatic-solutions/lunatic/blob/v${version}/CHANGELOG.md";
    license = with licenses; [ mit /* or */ asl20 ];
    maintainers = with maintainers; [ figsoda ];
  };
+1 −3
Original line number Diff line number Diff line
@@ -9785,9 +9785,7 @@ with pkgs;
  lshw = callPackage ../tools/system/lshw { };
  lunatic = callPackage ../development/interpreters/lunatic {
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  lunatic = callPackage ../development/interpreters/lunatic { };
  lux = callPackage ../tools/video/lux { };