Unverified Commit 9acae24f authored by tomberek's avatar tomberek Committed by GitHub
Browse files

Merge pull request #306035 from Sigmanificient/calc-2.13.0

mini-calc: 2.12.3 -> 2.13.0
parents ecb816fe 76b0e040
Loading
Loading
Loading
Loading
+4 −11
Original line number Diff line number Diff line
{ lib, rustPlatform, fetchpatch, fetchFromGitHub }:
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
  pname = "mini-calc";
  version = "2.12.3";
  version = "2.13.0";

  src = fetchFromGitHub {
    owner = "coco33920";
    repo = "calc";
    rev = version;
    hash = "sha256-/aTfh3d63wwk3xai2F/D1fMJiDO4mg+OeLIanV4vSuA=";
    hash = "sha256-rvQXn0VuOjB7CSf+bDTGxjeMKpbJGhVmyDLNYSy/Mlw=";
  };

  cargoHash = "sha256-BfaOhEAKZmTYkzz6rvcSmDPufyQMJFtQO6CRksgA/2U=";
  cargoPatches = [
    (fetchpatch {
      url = "https://github.com/coco33920/calc/commit/a010c72b5c06c75b7f644071f2861394dd5c74b8.patch";
      sha256 = "sha256-ceyxfgiXHS+oOJ4apM8+cSjMICwGlQHMKjFICATmKTU=";
    })
  ];

  cargoHash = "sha256-QFzrJBnGKAgDhjbbik0WP3Y1fNoHMAiWpEHfidFQGPk=";
  meta = {
    description = "A fully-featured minimalistic configurable calculator written in Rust";
    changelog = "https://github.com/coco33920/calc/blob/${version}/CHANGELOG.md";