mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
mw: init at unstable-2023-08-04
This commit is contained in:
parent
0546c70849
commit
c91052f6ea
37
pkgs/tools/text/mw/default.nix
Normal file
37
pkgs/tools/text/mw/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, buildNpmPackage
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "mw";
|
||||
version = "unstable-2023-08-04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mark-when";
|
||||
repo = "mw";
|
||||
rev = "a8676da1c7812a051456fabcb980c52a72f6e75e";
|
||||
hash = "sha256-i95WuTH8qY+0PYQA9kOykQL+4d4oB2Hlvg9sfGtDeCo=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-D1hTaoM4j81qrrLMoKJ7OxJTfRoht3/yqgJs95EFxY4=";
|
||||
|
||||
# correctly substitute the usage message
|
||||
postPatch = ''
|
||||
substituteInPlace src/index.ts --replace \
|
||||
'.usage("$0' '.usage("mw'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/mark-when/mw/blob/${src.rev}/CHANGELOG.md";
|
||||
description = "Markwhen CLI";
|
||||
homepage = "https://github.com/mark-when/mw";
|
||||
license = lib.licenses.mit;
|
||||
longDescription = ''
|
||||
Markwhen is an interactive text-to-timeline tool. Write markdown-ish text and it gets converted into a nice looking cascading timeline.
|
||||
'';
|
||||
mainProgram = "mw";
|
||||
maintainers = with lib.maintainers; [ dit7ya ];
|
||||
};
|
||||
}
|
@ -33584,6 +33584,8 @@ with pkgs;
|
||||
|
||||
mutt-ics = callPackage ../tools/networking/mutt-ics { };
|
||||
|
||||
mw = callPackage ../tools/text/mw { };
|
||||
|
||||
mwic = callPackage ../applications/misc/mwic {
|
||||
pythonPackages = python3Packages;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user