fork/eza
git clone https://git.julia.blue/fork/eza
4320ec96
main
1# SPDX-FileCopyrightText: 2024 Christina Sørensen 2# SPDX-License-Identifier: EUPL-1.2 3{ 4pkgs , 5naersk' , 6buildInputs , 7 ... 8} : 9 10naersk' . buildPackage rec { 11pname = "eza" ; 12version = "git" ; 13 14src = ../. ; 15doCheck = true ; 16 17inherit buildInputs ; 18nativeBuildInputs = with pkgs ; [ 19cmake 20pkg-config 21installShellFiles 22pandoc 23]; 24 25buildNoDefaultFeatures = true ; 26buildFeatures = "git" ; 27 28postInstall = '' 29for page in eza.1 eza_colors.5 eza_colors-explanation.5; do 30sed "s/\$version/ ${ version } /g " " man/ $ page.md" | 31pandoc --standalone -f markdown -t man >"man/ $ page " 32done 33installManPage man/eza.1 man/eza_colors.5 man/eza_colors-explanation.5 34installShellCompletion \ 35--bash completions/bash/eza \ 36--fish completions/fish/eza.fish \ 37--zsh completions/zsh/_eza 38'' ; 39 40meta = with pkgs . lib ; { 41description = "A modern, maintained replacement for ls" ; 42longDescription = '' 43eza is a modern replacement for ls. It uses colours for information by 44default, helping you distinguish between many types of files, such as 45whether you are the owner, or in the owning group. It also has extra 46features not present in the original ls, such as viewing the Git status 47for a directory, or recursing into directories with a tree view. eza is 48written in Rust, so it’s small, fast, and portable. 49'' ; 50homepage = "https://github.com/eza-community/eza" ; 51license = licenses . mit ; 52mainProgram = "eza" ; 53maintainers = with maintainers ; [ cafkafk ]; 54}; 55}