1 { lib, fetchFromGitHub, ocamlPackages }:
3 ocamlPackages.buildDunePackage rec {
7 src = fetchFromGitHub {
10 rev = "release-${version}";
11 sha256 = "1rx2nl6cdv609pfymnbq53pi3ql5fr4kda8x10ycd9xq2gc4f21g";
14 patches = [ ./prefix.patch ];
17 substituteInPlace src/orpie/install.ml.in --replace '@prefix@' $out
20 nativeBuildInputs = [ ocamlPackages.camlp5 ];
21 buildInputs = with ocamlPackages; [ curses num gsl ];
24 inherit (src.meta) homepage;
25 description = "Curses-based RPN calculator";
26 license = lib.licenses.gpl3Only;
27 maintainers = with lib.maintainers; [ obadz ];