Files
nixpkgs/pkgs/by-name/ls/lstr/package.nix
2026-07-21 07:52:49 +00:00

47 lines
1.1 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
gitMinimal,
openssl,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "lstr";
version = "0.4.0";
src = fetchFromGitHub {
owner = "bgreenwell";
repo = "lstr";
tag = "v${finalAttrs.version}";
hash = "sha256-uDwf6+By4z1TTkuyg0g5J8zzkM/UCsBMLAF9WfSEreE=";
};
cargoHash = "sha256-CGdQmjgOvcLAE88nocn/iA4qfS98CEsseoNn/0udd0s=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ (lib.getDev openssl) ];
nativeCheckInputs = [ gitMinimal ];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
meta = {
description = "Fast, minimalist directory tree viewer written in Rust";
homepage = "https://github.com/bgreenwell/lstr";
changelog = "https://github.com/bgreenwell/lstr/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
DieracDelta
philiptaron
];
mainProgram = "lstr";
};
})