diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2022-08-25 05:26:22 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2022-08-25 05:26:22 +0300 |
commit | ffc160483fa8a35a4a3f116aa783e7428f6d445f (patch) | |
tree | d84edfd5393805cf4e314f0768794d249420c4fe /pkgs/applications/editors/kibi | |
parent | d941f93a536d0a4d2f20bdf48e58dcfcc67ce8ff (diff) |
kibi: enable syntax highlighting
Diffstat (limited to 'pkgs/applications/editors/kibi')
-rw-r--r-- | pkgs/applications/editors/kibi/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/editors/kibi/default.nix b/pkgs/applications/editors/kibi/default.nix index 2020729d81c55..3d1f01f4b021f 100644 --- a/pkgs/applications/editors/kibi/default.nix +++ b/pkgs/applications/editors/kibi/default.nix @@ -1,6 +1,7 @@ { lib , fetchFromGitHub , rustPlatform +, makeWrapper }: rustPlatform.buildRustPackage rec { @@ -16,6 +17,13 @@ rustPlatform.buildRustPackage rec { sha256 = "sha256-ox1qKWxJlUIFzEqeyzG2kqZix3AHnOKFrlpf6O5QM+k="; }; + nativeBuildInputs = [ makeWrapper ]; + + postInstall = '' + install -Dm644 syntax.d/* -t $out/share/kibi/syntax.d + wrapProgram $out/bin/kibi --prefix XDG_DATA_DIRS : "$out/share" + ''; + meta = with lib; { description = "A text editor in ≤1024 lines of code, written in Rust"; homepage = "https://github.com/ilai-deutel/kibi"; |