teapot: refactor package definitions

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