mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{
|
|
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";
|
|
};
|
|
}
|