This commit is contained in:
2025-11-14 09:07:37 +01:00
parent 03aebab782
commit e6609fd6f4
80 changed files with 770 additions and 77 deletions

10
overlays/default.nix Normal file
View File

@@ -0,0 +1,10 @@
let
dir = ./.;
files = builtins.filter (f: f != "default.nix") (builtins.attrNames (builtins.readDir dir));
in
builtins.listToAttrs (
map (f: {
name = f;
value = import "${dir}/${f}";
}) files
)

52
overlays/tabiew.nix Normal file
View File

@@ -0,0 +1,52 @@
# 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;
};
};
}