nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 ocamlPackages,
5}:
6
7ocamlPackages.buildDunePackage rec {
8 pname = "orpie";
9 version = "1.6.1";
10
11 src = fetchFromGitHub {
12 owner = "pelzlpj";
13 repo = "orpie";
14 tag = "release-${version}";
15 sha256 = "sha256-LwhH2BO4p8Y8CB2pNkl2heIR7yh42erdTcDsxgy1ouc=";
16 };
17
18 patches = [ ./prefix.patch ];
19
20 preConfigure = ''
21 substituteInPlace src/orpie/install.ml.in --replace '@prefix@' $out
22 '';
23
24 nativeBuildInputs = [ ocamlPackages.camlp5 ];
25 buildInputs = with ocamlPackages; [
26 curses
27 num
28 gsl
29 ];
30
31 meta = {
32 inherit (src.meta) homepage;
33 description = "Curses-based RPN calculator";
34 license = lib.licenses.gpl3Only;
35 maintainers = with lib.maintainers; [ obadz ];
36 };
37}