Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
installShellFiles,
|
|
pandoc,
|
|
testers,
|
|
lsd,
|
|
git,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lsd";
|
|
version = "1.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lsd-rs";
|
|
repo = "lsd";
|
|
rev = "v${version}";
|
|
hash = "sha256-LlMcBMb40yN+rlvGVsh7JaC3j9sF60YxitQQXe1q/oI=";
|
|
};
|
|
|
|
cargoHash = "sha256-yOJKXfPtzaYF012YCyW3m+9ffag4En4ZfTaiVh/85dM=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
pandoc
|
|
];
|
|
|
|
postInstall = ''
|
|
pandoc --standalone --to man doc/lsd.md -o lsd.1
|
|
installManPage lsd.1
|
|
|
|
installShellCompletion --cmd lsd \
|
|
--bash $releaseDir/build/lsd-*/out/lsd.bash \
|
|
--fish $releaseDir/build/lsd-*/out/lsd.fish \
|
|
--zsh $releaseDir/build/lsd-*/out/_lsd
|
|
'';
|
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
passthru.tests.version = testers.testVersion { package = lsd; };
|
|
|
|
meta = {
|
|
homepage = "https://github.com/lsd-rs/lsd";
|
|
description = "Next gen ls command";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
zowoq
|
|
SuperSandro2000
|
|
];
|
|
mainProgram = "lsd";
|
|
};
|
|
}
|