Merge pull request #247731 from dit7ya/mw

mw: init at unstable-2023-08-04

authored by

Pol Dellaiera and committed by
GitHub
cb3da14d d90ede3a

+39
+37
pkgs/tools/text/mw/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , buildNpmPackage 5 + }: 6 + 7 + buildNpmPackage rec { 8 + pname = "mw"; 9 + version = "unstable-2023-08-04"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "mark-when"; 13 + repo = "mw"; 14 + rev = "a8676da1c7812a051456fabcb980c52a72f6e75e"; 15 + hash = "sha256-i95WuTH8qY+0PYQA9kOykQL+4d4oB2Hlvg9sfGtDeCo="; 16 + }; 17 + 18 + npmDepsHash = "sha256-D1hTaoM4j81qrrLMoKJ7OxJTfRoht3/yqgJs95EFxY4="; 19 + 20 + # correctly substitute the usage message 21 + postPatch = '' 22 + substituteInPlace src/index.ts --replace \ 23 + '.usage("$0' '.usage("mw' 24 + ''; 25 + 26 + meta = { 27 + changelog = "https://github.com/mark-when/mw/blob/${src.rev}/CHANGELOG.md"; 28 + description = "Markwhen CLI"; 29 + homepage = "https://github.com/mark-when/mw"; 30 + license = lib.licenses.mit; 31 + longDescription = '' 32 + Markwhen is an interactive text-to-timeline tool. Write markdown-ish text and it gets converted into a nice looking cascading timeline. 33 + ''; 34 + mainProgram = "mw"; 35 + maintainers = with lib.maintainers; [ dit7ya ]; 36 + }; 37 + }
+2
pkgs/top-level/all-packages.nix
··· 33739 33739 33740 33740 mutt-ics = callPackage ../tools/networking/mutt-ics { }; 33741 33741 33742 + mw = callPackage ../tools/text/mw { }; 33743 + 33742 33744 mwic = callPackage ../applications/misc/mwic { 33743 33745 pythonPackages = python3Packages; 33744 33746 };