depot/third_party/nixpkgs/pkgs/by-name/ll/lla/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

55 lines
1.6 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
makeBinaryWrapper,
versionCheckHook,
nix-update-script,
}:
let
version = "0.3.10";
in
rustPlatform.buildRustPackage {
pname = "lla";
inherit version;
src = fetchFromGitHub {
owner = "chaqchase";
repo = "lla";
tag = "v${version}";
hash = "sha256-/6p23JW3ZaSuDf34IWcTggR92/zUTMRerQ32bTsRujo=";
};
nativeBuildInputs = [ makeBinaryWrapper ];
useFetchCargoVendor = true;
cargoHash = "sha256-aX8nm/V0ug2g40QeFU9AWxjuFAnW+gYTR8RC5CV7wRQ=";
cargoBuildFlags = [ "--workspace" ];
postFixup = ''
wrapProgram $out/bin/lla \
--add-flags "--plugins-dir $out/lib"
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Blazing-fast `ls` replacement with superpowers";
longDescription = ''
`lla` is a modern `ls` replacement that transforms how developers interact with their filesystem.
Built with Rust's performance capabilities and designed with user experience in mind,
`lla` combines the familiarity of ls with powerful features like specialized views,
Git integration, and a robust plugin system with an extensible list of plugins to add more functionality.
'';
homepage = "https://lla.chaqchase.com";
changelog = "https://github.com/chaqchase/lla/blob/refs/tags/v${version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ pluiedev ];
platforms = lib.platforms.unix;
mainProgram = "lla";
};
}