1{
2 fetchFromGitHub,
3 lib,
4 buildNpmPackage,
5}:
6buildNpmPackage (finalAttrs: {
7 pname = "git-jump";
8 version = "0.3.1";
9
10 src = fetchFromGitHub {
11 owner = "mykolaharmash";
12 repo = "git-jump";
13 tag = "v${finalAttrs.version}";
14 hash = "sha256-0jX7IiYWLgzjZDEc4lXylqkHqawgnOKI4I9ShzlC+8U=";
15 };
16
17 npmDepsHash = "sha256-9f3Ws2V6li+u6qVMD3J6IHSNvG5TGvj0XfAZArgIi1w=";
18
19 postInstall = ''
20 installManPage git-jump.1
21 '';
22
23 preFixup = ''
24 rm $out/lib/node_modules/git-jump/node_modules/.bin/{tsc,tsserver}
25 '';
26
27 meta = {
28 description = "Improved navigation between Git branches";
29 homepage = "https://github.com/mykolaharmash/git-jump";
30 license = lib.licenses.mit;
31 mainProgram = "git-jump";
32 maintainers = with lib.maintainers; [ juliusfreudenberger ];
33 };
34})