Unverified Commit b471c7e9 authored by Christina Sørensen's avatar Christina Sørensen
Browse files

amber-lang: 0.3.3-alpha -> 0.3.5-alpha

parent fcb54ddc
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -11,16 +11,16 @@

rustPlatform.buildRustPackage rec {
  pname = "amber-lang";
  version = "0.3.3-alpha";
  version = "0.3.5-alpha";

  src = fetchFromGitHub {
    owner = "Ph0enixKM";
    repo = "Amber";
    owner = "amber-lang";
    repo = "amber";
    rev = version;
    hash = "sha256-Al1zTwQufuVGSlttf02s5uI3cyCNDShhzMT3l9Ctv3Y=";
    hash = "sha256-wf0JNWNliDGNvlbWoatPqDKmVaBzHeCKOvJWuE9PnpQ=";
  };

  cargoHash = "sha256-HbkIkCVy2YI+nP5t01frXBhlp/rCsB6DwLL53AHJ4vE=";
  cargoHash = "sha256-6T4WcQkCMR8W67w0uhhN8W0FlLsrTUMa3/xRXDtW4Es=";

  preConfigure = ''
    substituteInPlace src/compiler.rs \
@@ -36,6 +36,11 @@ rustPlatform.buildRustPackage rec {
    util-linux
  ];

  checkFlags = [
    "--skip=tests::extra::download"
    "--skip=tests::formatter::all_exist"
  ];

  postInstall = ''
    wrapProgram "$out/bin/amber" --prefix PATH : "${lib.makeBinPath [ bc ]}"
  '';