3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/kibi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
806 B
Nix
Raw Normal View History

{ lib
2020-04-29 16:06:52 +01:00
, fetchFromGitHub
, rustPlatform
2022-08-25 03:26:22 +01:00
, makeWrapper
2020-04-29 16:06:52 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "kibi";
2021-02-14 22:38:03 +00:00
version = "0.2.2";
2020-04-29 16:06:52 +01:00
cargoSha256 = "sha256-ebUCkcUACganeq5U0XU4VIGClKDZGhUw6K3WBgTUUUw=";
2020-04-29 16:06:52 +01:00
src = fetchFromGitHub {
owner = "ilai-deutel";
repo = "kibi";
rev = "v${version}";
2021-02-14 22:38:03 +00:00
sha256 = "sha256-ox1qKWxJlUIFzEqeyzG2kqZix3AHnOKFrlpf6O5QM+k=";
2020-04-29 16:06:52 +01:00
};
2022-08-25 03:26:22 +01:00
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; {
2020-04-29 16:06:52 +01:00
description = "A text editor in 1024 lines of code, written in Rust";
homepage = "https://github.com/ilai-deutel/kibi";
license = licenses.mit;
maintainers = with maintainers; [ robertodr ];
};
}