This commit is contained in:
2025-11-19 21:06:46 +01:00
parent e6609fd6f4
commit a3b13c47ef
16 changed files with 267 additions and 837 deletions

View File

@@ -1,52 +0,0 @@
# overlays/tabiew.nix
self: super:
let
# Try to use rust-bin if available, otherwise fall back to latest from nixpkgs-mozilla
rustToolchain =
if super ? rust-bin then
super.rust-bin.nightly.latest.default
else
super.latest.rustChannels.nightly.rust;
rustPlatform = super.makeRustPlatform {
cargo = rustToolchain;
rustc = rustToolchain;
};
in
{
tabiew = rustPlatform.buildRustPackage rec {
pname = "tabiew";
version = "0.11.1";
src = super.fetchFromGitHub {
owner = "shshemi";
repo = "tabiew";
rev = "v${version}";
sha256 = "sha256-RvbHXnDaoqMHjA9u9kFs5MB6xeQG/E35PEu+1LIXIBU=";
};
cargoLock = {
lockFile = "${src}/Cargo.lock";
};
# Build dependencies needed for openssl-sys
nativeBuildInputs = with super; [
pkg-config
perl
];
# Runtime dependencies
buildInputs = with super; [
openssl
];
# Disable cargo-auditable as it doesn't support edition2024 yet
auditable = false;
meta = with super.lib; {
description = "A simple CSV viewer";
homepage = "https://github.com/shshemi/tabiew";
license = licenses.mit;
};
};
}