3
0
Fork 0
forked from mirrors/nixpkgs

kibi: enable syntax highlighting

This commit is contained in:
Nikolay Korotkiy 2022-08-25 05:26:22 +03:00
parent d941f93a53
commit ffc160483f
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -1,6 +1,7 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, rustPlatform , rustPlatform
, makeWrapper
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
@ -16,6 +17,13 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-ox1qKWxJlUIFzEqeyzG2kqZix3AHnOKFrlpf6O5QM+k="; 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; { meta = with lib; {
description = "A text editor in 1024 lines of code, written in Rust"; description = "A text editor in 1024 lines of code, written in Rust";
homepage = "https://github.com/ilai-deutel/kibi"; homepage = "https://github.com/ilai-deutel/kibi";