2021-08-13 20:07:01 +02:00
|
|
|
{ fetchFromGitHub, lib, rustPlatform, makeWrapper }:
|
2021-06-30 03:54:42 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "helix";
|
2022-01-04 15:54:50 +01:00
|
|
|
version = "0.6.0";
|
2021-06-30 03:54:42 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "helix-editor";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2022-01-04 15:54:50 +01:00
|
|
|
sha256 = "sha256-d/USOtcPLjdgzN7TBCouBRmoSDH5LZD4R5Qq7lUrWZw=";
|
2021-06-30 03:54:42 +02:00
|
|
|
};
|
|
|
|
|
2022-01-04 15:54:50 +01:00
|
|
|
cargoSha256 = "sha256-/EATU7HsGNB35YOBp8sofbPd1nl4d3Ggj1ay3QuHkCI=";
|
2021-06-30 03:54:42 +02:00
|
|
|
|
2021-08-13 20:07:01 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/lib
|
|
|
|
cp -r runtime $out/lib
|
|
|
|
'';
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime
|
|
|
|
'';
|
2021-06-30 03:54:42 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A post-modern modal text editor";
|
|
|
|
homepage = "https://helix-editor.com";
|
|
|
|
license = licenses.mpl20;
|
2021-08-11 01:13:07 +02:00
|
|
|
mainProgram = "hx";
|
2021-06-30 03:54:42 +02:00
|
|
|
maintainers = with maintainers; [ yusdacra ];
|
|
|
|
};
|
|
|
|
}
|