lib.packagesFromDirectoryRecursive: Improved documentation (#359898)
[NixPkgs.git] / pkgs / by-name / ls / lscolors / package.nix
blob3d31ece6469428bb4703acd4e23632ef777ea848
1 { lib, rustPlatform, fetchCrate }:
3 rustPlatform.buildRustPackage rec {
4   pname = "lscolors";
5   version = "0.20.0";
7   src = fetchCrate {
8     inherit version pname;
9     hash = "sha256-EUUPVSpHc9tN1Hi7917hJ2psTZq5nnGw6PBeApvlVtw=";
10   };
12   cargoHash = "sha256-1wAHd0WrJfjxDyGRAJjXGFY9ZBFlBOQFr2+cxoTufW0=";
14   buildFeatures = [ "nu-ansi-term" ];
16   # setid is not allowed in the sandbox
17   checkFlags = [ "--skip=tests::style_for_setid" ];
19   meta = with lib; {
20     description = "Rust library and tool to colorize paths using LS_COLORS";
21     homepage = "https://github.com/sharkdp/lscolors";
22     changelog = "https://github.com/sharkdp/lscolors/releases/tag/v${version}";
23     license = with licenses; [ asl20 /* or */ mit ];
24     maintainers = with maintainers; [ SuperSandro2000 ];
25     mainProgram = "lscolors";
26   };