Files
nixpkgs/pkgs/by-name/ui/uivonim/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
968 B
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
electron,
makeWrapper,
}:
buildNpmPackage rec {
pname = "uivonim";
version = "0.29.0";
src = fetchFromGitHub {
owner = "smolck";
repo = "uivonim";
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 = {
homepage = "https://github.com/smolck/uivonim";
description = "Cross-platform GUI for neovim based on electron";
maintainers = [ ];
platforms = lib.platforms.unix;
license = lib.licenses.agpl3Only;
mainProgram = "uivonim";
};
}