bulletty: 0.1.9 -> 0.2.0

This commit is contained in:
nartsisss
2025-11-13 06:02:56 +03:00
parent 0e9fe2ac17
commit 2194385ba9
2 changed files with 39 additions and 13 deletions
+25 -13
View File
@@ -1,38 +1,50 @@
{
lib,
pkgs,
fetchFromGitHub,
rustPlatform,
nix-update-script,
fetchFromGitHub,
pkg-config,
openssl,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "bulletty";
version = "0.1.9";
version = "0.2.0";
src = fetchFromGitHub {
owner = "CrociDB";
repo = "bulletty";
tag = "v${finalAttrs.version}";
hash = "sha256-fNMUdZ5WoDUVShiKl4pitkcOlHYTKXUVfiAHVqpdWmo=";
hash = "sha256-HX5J00Y7nkBwLIOEoc9jRtv9xObeWrWpHhYBQUOUVKA=";
};
cargoHash = "sha256-ZdJtFPEjPDQSUEtdPv3uIH44wa6mGPzm/KRp5VTOb1Y=";
# perl is required for bulletty package build for openssl
nativeBuildInputs = with pkgs; [
perl
patches = [
# Add patch that disables rustfmt to prevent compile time crashes
./remove-rustfmt-exec.patch
];
doInstallCheck = true;
cargoHash = "sha256-WIEbZIWdIGWiwi6918MVFu++aZ2oWJTF4AUSTpKRZvQ=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
env.OPENSSL_NO_VENDOR = true;
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
description = "bulletty is a feed reader for the terminal";
homepage = "https://bulletty.croci.dev/";
description = "Terminal UI RSS/ATOM feed reader";
homepage = "https://bulletty.croci.dev";
changelog = "https://github.com/CrociDB/bulletty/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.FKouhai ];
mainProgram = "bulletty";
};
})
@@ -0,0 +1,14 @@
diff --git a/build.rs b/build.rs
index cb8d19a..f6dc5dc 100644
--- a/build.rs
+++ b/build.rs
@@ -103,9 +103,4 @@ fn embed_themes() {
writeln!(out, " m").unwrap();
writeln!(out, "}}").unwrap();
}
-
- std::process::Command::new("rustfmt")
- .arg(out_path)
- .status()
- .expect("Failed to run rustfmt");
}