calc: refactor meta

This commit is contained in:
Anderson Torres 2023-04-23 20:43:50 -03:00
parent 1ee74c1439
commit fc519cb40b

View file

@ -39,14 +39,16 @@ stdenv.mkDerivation rec {
"USE_READLINE=-DUSE_READLINE"
];
meta = with lib; {
description = "C-style arbitrary precision calculator";
meta = {
homepage = "http://www.isthe.com/chongo/tech/comp/calc/";
description = "C-style arbitrary precision calculator";
changelog = "https://github.com/lcn2/calc/blob/v${version}/CHANGES";
# The licensing situation depends on readline (see section 3 of the LGPL)
# If linked against readline then GPLv2 otherwise LGPLv2.1
changelog = "https://github.com/lcn2/calc/blob/v${version}/CHANGES";
license = with licenses; if enableReadline then gpl2Only else lgpl21Only;
maintainers = with maintainers; [ matthewbauer ];
platforms = platforms.all;
license = if enableReadline
then lib.licenses.gpl2Only
else lib.licenses.lgpl21Only;
maintainers = with lib.maintainers; [ matthewbauer ];
platforms = lib.platforms.all;
};
}