Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
970 B
Nix
46 lines
970 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 = with lib; {
|
|
homepage = "https://github.com/smolck/uivonim";
|
|
description = "Cross-platform GUI for neovim based on electron";
|
|
maintainers = [ ];
|
|
platforms = platforms.unix;
|
|
license = licenses.agpl3Only;
|
|
mainProgram = "uivonim";
|
|
};
|
|
}
|