Unverified Commit 108c57f8 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

Merge pull request #307903 from Sigmanificient/mini-calc-gnuplot-fix

mini-calc: Fix plot support
parents 02a92056 727eaee6
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
{ lib, rustPlatform, fetchFromGitHub }:
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  gnuplot,
  makeWrapper,
}:
rustPlatform.buildRustPackage rec {
  pname = "mini-calc";
  version = "2.13.0";
@@ -11,6 +17,14 @@ rustPlatform.buildRustPackage rec {
  };

  cargoHash = "sha256-QFzrJBnGKAgDhjbbik0WP3Y1fNoHMAiWpEHfidFQGPk=";

  nativeBuildInputs = [ makeWrapper ];
  postFixup = ''
    wrapProgram $out/bin/mini-calc \
      --prefix PATH : "${lib.makeBinPath [ gnuplot ]}"

  '';

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