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