orpie: 1.5.2 → 1.6.1

This commit is contained in:
Vincent Laporte 2020-10-07 06:57:19 +02:00 committed by Vincent Laporte
parent b3910a583c
commit c0ab50b741
2 changed files with 22 additions and 16 deletions

View File

@ -1,21 +1,30 @@
{ stdenv, fetchurl, ocamlPackages, ncurses, gsl }:
{ lib, fetchFromGitHub, ocamlPackages }:
stdenv.mkDerivation rec {
ocamlPackages.buildDunePackage rec {
pname = "orpie";
version = "1.5.2";
version = "1.6.1";
src = fetchurl {
url = "http://pessimization.com/software/orpie/${pname}-${version}.tar.gz";
sha256 = "0v9xgpcf186ni55rkmx008msyszw0ypd6rd98hgwpih8yv3pymfy";
src = fetchFromGitHub {
owner = "pelzlpj";
repo = pname;
rev = "release-${version}";
sha256 = "1rx2nl6cdv609pfymnbq53pi3ql5fr4kda8x10ycd9xq2gc4f21g";
};
buildInputs = [ ncurses gsl ] ++ (with ocamlPackages; [ ocaml camlp4 ]);
preConfigure = ''
patchShebangs scripts
substituteInPlace scripts/compute_prefix \
--replace '"topfind"' \
'"${ocamlPackages.findlib}/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/topfind"'
export PREFIX=$out
'';
buildInputs = with ocamlPackages; [ curses camlp5 num gsl ];
meta = {
homepage = "https://github.com/pelzlpj/orpie";
description = "A fullscreen RPN calculator for the console";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.all;
maintainers = with stdenv.lib.maintainers; [ obadz ];
inherit (src.meta) homepage;
description = "A Curses-based RPN calculator";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ obadz ];
};
}

View File

@ -22671,10 +22671,7 @@ in
opusTools = callPackage ../applications/audio/opus-tools { };
orpie = callPackage ../applications/misc/orpie {
gsl = gsl_1;
ocamlPackages = ocaml-ng.ocamlPackages_4_02;
};
orpie = callPackage ../applications/misc/orpie { };
osmo = callPackage ../applications/office/osmo { };