kibi: 0.3.2 -> 0.3.3 (#506824)
This commit is contained in:
@@ -2,31 +2,40 @@
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
nix-update-script,
|
||||
makeWrapper,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "kibi";
|
||||
version = "0.3.2";
|
||||
version = "0.3.3";
|
||||
|
||||
cargoHash = "sha256-EOw4iE9MTZVL0vIgPHVr0dggtksS5b8IvrRykblF0vA=";
|
||||
cargoHash = "sha256-lBBIEceZgxwoM2DoD+iFtlNdnO5LkvIf2/8CB2uPH3Y=";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ilai-deutel";
|
||||
repo = "kibi";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-lakx3ZNj9HeLFdRVxYLUh8W6yHXpBXlguQjjFofWl/s=";
|
||||
hash = "sha256-uGCtFS29XVrYXOHAeTT5QmYwCIQWg2SRmgw3CP5O0+c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
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
|
||||
install -Dm644 assets/kibi.svg -t $out/share/icons/hicolor/scalable/apps
|
||||
wrapProgram $out/bin/kibi --prefix XDG_DATA_DIRS : "$out/share"
|
||||
'';
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
doInstallCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Text editor in ≤1024 lines of code, written in Rust";
|
||||
homepage = "https://github.com/ilai-deutel/kibi";
|
||||
@@ -34,7 +43,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
asl20
|
||||
mit
|
||||
];
|
||||
maintainers = with lib.maintainers; [ robertodr ];
|
||||
maintainers = with lib.maintainers; [
|
||||
robertodr
|
||||
ilai-deutel
|
||||
];
|
||||
mainProgram = "kibi";
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user