blob: a888747d05223fb152f6ae2cc93c1d0f91f05d58 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{ lib
, buildNpmPackage
, fetchFromGitHub
, electron
, makeWrapper
}:
buildNpmPackage rec {
pname = "uivonim";
version = "0.29.0";
src = fetchFromGitHub {
owner = "smolck";
repo = pname;
rev = "v${version}";
hash = "sha256-TcsKjRwiCTRQLxolRuJ7nRTGxFC0V2Q8LQC5p9iXaaY=";
};
npmDepsHash = "sha256-jWLvsN6BCxTWn/Lc0fSz0VJIUiFNN8ptSYMeWlWsHXc=";
env = {
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
};
npmFlags = [ "--ignore-scripts" ];
npmBuildScript = "build:prod";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
makeWrapper ${electron}/bin/electron $out/bin/uivonim \
--add-flags $out/lib/node_modules/uivonim/build/main/main.js
'';
meta = with lib; {
homepage = "https://github.com/smolck/uivonim";
description = "Cross-platform GUI for neovim based on electron";
maintainers = with maintainers; [ gebner ];
platforms = platforms.unix;
license = licenses.agpl3Only;
mainProgram = "uivonim";
};
}
|