teapot: refactor package definitions

+10 -10
+10 -10
pkgs/by-name/te/teapot/package.nix
··· 7 7 ncurses, 8 8 }: 9 9 10 - stdenv.mkDerivation rec { 10 + stdenv.mkDerivation (finalAttrs: { 11 11 pname = "teapot"; 12 12 version = "2.3.0"; 13 13 14 14 src = fetchFromGitHub { 15 - name = "${pname}-${version}"; 16 15 owner = "museoa"; 17 - repo = pname; 18 - rev = version; 16 + repo = "teapot"; 17 + tag = finalAttrs.version; 19 18 hash = "sha256-38XFjRzOGasr030f+mRYT+ptlabpnVJfa+1s7ZAjS+k="; 20 19 }; 21 20 ··· 47 46 "-DENABLE_HELP=OFF" 48 47 ]; 49 48 50 - meta = with lib; { 51 - inherit (src.meta) homepage; 49 + meta = { 52 50 description = "Table Editor And Planner, Or: Teapot"; 53 51 longDescription = '' 54 52 Teapot is a compact spreadsheet software originally written by Michael ··· 71 69 spreadsheets still inherit from the days of VisiCalc on ancient CP/M 72 70 systems. 73 71 ''; 74 - license = licenses.gpl3Plus; 75 - maintainers = with maintainers; [ ]; 76 - platforms = platforms.unix; 72 + license = lib.licenses.gpl3Plus; 73 + maintainers = with lib.maintainers; [ ]; 74 + platforms = lib.platforms.unix; 77 75 mainProgram = "teapot"; 76 + homepage = "https://github.com/museoa/teapot"; 77 + changelog = "https://github.com/museoa/teapot/releases/tag/${finalAttrs.version}"; 78 78 }; 79 - } 79 + }) 80 80 # TODO: patch/fix FLTK building 81 81 # TODO: add documentation