diff options
author | Yusuf Bera Ertan <y.bera003.06@protonmail.com> | 2021-08-13 21:07:01 +0300 |
---|---|---|
committer | Yusuf Bera Ertan <y.bera003.06@protonmail.com> | 2021-08-14 03:39:15 +0300 |
commit | 4b818d89d2d6edf7756739d08ce3296c74e3ac22 (patch) | |
tree | 9e3b453fe2d62d2cada84a321bdfde5764a0b1af /pkgs/applications/editors/helix | |
parent | c93884185aae0b1ccbab6766482c5629b1b9cbd2 (diff) |
helix: 0.3.0 -> 0.4.0
Diffstat (limited to 'pkgs/applications/editors/helix')
-rw-r--r-- | pkgs/applications/editors/helix/default.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/pkgs/applications/editors/helix/default.nix b/pkgs/applications/editors/helix/default.nix index 315951b0e9e6f..66c0e092fcb51 100644 --- a/pkgs/applications/editors/helix/default.nix +++ b/pkgs/applications/editors/helix/default.nix @@ -1,20 +1,28 @@ -{ fetchFromGitHub, lib, rustPlatform }: +{ fetchFromGitHub, lib, rustPlatform, makeWrapper }: rustPlatform.buildRustPackage rec { pname = "helix"; - version = "0.3.0"; + version = "0.4.0"; src = fetchFromGitHub { owner = "helix-editor"; repo = pname; rev = "v${version}"; fetchSubmodules = true; - sha256 = "sha256-dI5yIP5uUmM9pyMpvvdrk8/0jE/REkU/m9BF081LwMU="; + sha256 = "sha256-iCNA+gZer6BycWnhosDFRuxfS6QAb06XTix/vFsaey0="; }; - cargoSha256 = "sha256-l3Ikr4IyUsHItJIC4BaIZZb6vio3bchumbbPI+nxIjQ="; + cargoSha256 = "sha256-sqXPgtLMXa3kMQlnw2xDBEsVfjeRXO6Zp6NEFS/0h20="; - cargoBuildFlags = [ "--features embed_runtime" ]; + 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"; |