Unverified Commit 52f30540 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy
Browse files

kibi: modernize

parent 08bd155e
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -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";
  };
}
})