aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/science/math/calc/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/science/math/calc/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/science/math/calc/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/science/math/calc/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/science/math/calc/default.nix
index 81b7487bd27b..456ce878e49e 100644
--- a/infra/libkookie/nixpkgs/pkgs/applications/science/math/calc/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/applications/science/math/calc/default.nix
@@ -3,23 +3,24 @@
stdenv.mkDerivation rec {
pname = "calc";
- version = "2.12.7.6";
+ version = "2.12.8.2";
src = fetchurl {
urls = [
"https://github.com/lcn2/calc/releases/download/${version}/${pname}-${version}.tar.bz2"
"http://www.isthe.com/chongo/src/calc/${pname}-${version}.tar.bz2"
];
- sha256 = "sha256-Pg8nvW+RDy1Vb+Xg+5tnDxZEVkD80VcQGyZVayq8zsk=";
+ sha256 = "sha256-yKe4PASm7qWH/nYv8BtYbi9m3xPpA0SZ02Hahj8DJC8=";
};
- patchPhase = ''
+ postPatch = ''
substituteInPlace Makefile \
--replace '-install_name ''${LIBDIR}/libcalc''${LIB_EXT_VERSION}' '-install_name ''${T}''${LIBDIR}/libcalc''${LIB_EXT_VERSION}' \
--replace '-install_name ''${LIBDIR}/libcustcalc''${LIB_EXT_VERSION}' '-install_name ''${T}''${LIBDIR}/libcustcalc''${LIB_EXT_VERSION}'
'';
- buildInputs = [ util-linux makeWrapper ]
+ nativeBuildInputs = [ makeWrapper ];
+ buildInputs = [ util-linux ]
++ lib.optionals enableReadline [ readline ncurses ];
makeFlags = [
@@ -41,7 +42,9 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "C-style arbitrary precision calculator";
homepage = "http://www.isthe.com/chongo/tech/comp/calc/";
- license = licenses.lgpl21;
+ # The licensing situation depends on readline (see section 3 of the LGPL)
+ # If linked against readline then GPLv2 otherwise LGPLv2.1
+ license = with licenses; if enableReadline then gpl2Only else lgpl21Only;
maintainers = with maintainers; [ matthewbauer ];
platforms = platforms.all;
};