nixpkgs/pkgs/applications/editors/uivonim/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
955 B
Nix
Raw Normal View History

2023-08-16 03:36:31 +00:00
{ lib
, buildNpmPackage
, fetchFromGitHub
, electron
, makeWrapper
}:
buildNpmPackage rec {
2021-05-24 13:57:32 +00:00
pname = "uivonim";
version = "0.29.0";
2021-05-24 13:57:32 +00:00
src = fetchFromGitHub {
owner = "smolck";
repo = pname;
rev = "v${version}";
hash = "sha256-TcsKjRwiCTRQLxolRuJ7nRTGxFC0V2Q8LQC5p9iXaaY=";
2021-05-24 13:57:32 +00:00
};
npmDepsHash = "sha256-jWLvsN6BCxTWn/Lc0fSz0VJIUiFNN8ptSYMeWlWsHXc=";
2021-05-24 13:57:32 +00:00
2023-08-16 03:36:31 +00:00
env = {
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
2021-05-24 13:57:32 +00:00
};
2023-08-16 03:36:31 +00:00
npmFlags = [ "--ignore-scripts" ];
npmBuildScript = "build:prod";
2021-05-24 13:57:32 +00:00
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
makeWrapper ${electron}/bin/electron $out/bin/uivonim \
2023-08-16 03:36:31 +00:00
--add-flags $out/lib/node_modules/uivonim/build/main/main.js
2021-05-24 13:57:32 +00:00
'';
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;
};
}