lla: init at 0.2.9
This commit is contained in:
parent
8edf06bea5
commit
6d53ec21a0
52
pkgs/by-name/ll/lla/package.nix
Normal file
52
pkgs/by-name/ll/lla/package.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
makeBinaryWrapper,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
let
|
||||
version = "0.2.9";
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "lla";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "triyanox";
|
||||
repo = "lla";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-bemu4MuZYmn6LDIGxCAxIuS78alz8UE6qHhLoxtZSUk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||
|
||||
cargoHash = "sha256-sjJUG32jchAG/q4y649PyTJ2kqjT+0COSvO2QM6GnV0=";
|
||||
|
||||
cargoBuildFlags = [ "--workspace" ];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/lla \
|
||||
--add-flags "--plugins-dir $out/lib"
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Modern alternative to ls";
|
||||
longDescription = ''
|
||||
`lla` is a high-performance, extensible alternative to the traditional ls command, written in Rust.
|
||||
It offers enhanced functionality, customizable output, and a plugin system for extended capabilities.
|
||||
'';
|
||||
homepage = "https://github.com/triyanox/lla";
|
||||
changelog = "https://github.com/triyanox/lla/blob/refs/tags/v${version}/CHANGELOG.md";
|
||||
license = with lib.licenses; [ mit ];
|
||||
maintainers = with lib.maintainers; [ pluiedev ];
|
||||
platforms = lib.platforms.unix;
|
||||
mainProgram = "lla";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user