Added
This commit is contained in:
10
overlays/default.nix
Normal file
10
overlays/default.nix
Normal 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
52
overlays/tabiew.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user