kibi: modernize

This commit is contained in:
Nikolay Korotkiy
2025-10-27 12:17:13 +04:00
parent 08bd155e0a
commit 52f305407c
+12 -7
View File
@@ -5,7 +5,7 @@
makeWrapper,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "kibi";
version = "0.3.0";
@@ -14,22 +14,27 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "ilai-deutel";
repo = "kibi";
rev = "v${version}";
sha256 = "sha256-6uDpTQ97eNgM1lCiYPWS5QPxMNcPF3Ix14VaGiTY4Kc=";
tag = "v${finalAttrs.version}";
hash = "sha256-6uDpTQ97eNgM1lCiYPWS5QPxMNcPF3Ix14VaGiTY4Kc=";
};
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
install -Dm644 syntax.d/* -t $out/share/kibi/syntax.d
install -Dm644 kibi.desktop -t $out/share/applications
install -Dm0644 assets/logo.svg $out/share/icons/hicolor/scalable/apps/kibi.svg
wrapProgram $out/bin/kibi --prefix XDG_DATA_DIRS : "$out/share"
'';
meta = with lib; {
meta = {
description = "Text editor in 1024 lines of code, written in Rust";
homepage = "https://github.com/ilai-deutel/kibi";
license = licenses.mit;
maintainers = with maintainers; [ robertodr ];
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ robertodr ];
mainProgram = "kibi";
};
}
})