3e7541c14f
GitOrigin-RevId: ff377a78794d412a35245e05428c8f95fef3951f
34 lines
833 B
Nix
34 lines
833 B
Nix
{ fetchFromGitHub, lib, rustPlatform, makeWrapper }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "helix";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "helix-editor";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
sha256 = "sha256-d/USOtcPLjdgzN7TBCouBRmoSDH5LZD4R5Qq7lUrWZw=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-/EATU7HsGNB35YOBp8sofbPd1nl4d3Ggj1ay3QuHkCI=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib
|
|
cp -r runtime $out/lib
|
|
'';
|
|
postFixup = ''
|
|
wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A post-modern modal text editor";
|
|
homepage = "https://helix-editor.com";
|
|
license = licenses.mpl20;
|
|
mainProgram = "hx";
|
|
maintainers = with maintainers; [ yusdacra ];
|
|
};
|
|
}
|