nixpkgs/pkgs/applications/misc/lscolors/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
788 B
Nix
Raw Normal View History

2021-10-03 14:34:17 +00:00
{ lib, rustPlatform, fetchCrate }:
2021-02-23 10:22:01 +00:00
rustPlatform.buildRustPackage rec {
pname = "lscolors";
version = "0.16.0";
2021-02-23 10:22:01 +00:00
2021-10-03 14:34:17 +00:00
src = fetchCrate {
inherit version pname;
hash = "sha256-gLtQIqdU6syTo+Z+P59kIpwEtiGCr/DOom9+jA8Uq98=";
2021-02-23 10:22:01 +00:00
};
cargoHash = "sha256-OA9iYGwKElvRaKoyelH9w5ZphoLKrbk8VXwZ2NyLLQY=";
2021-11-14 16:20:02 +00:00
buildFeatures = [ "nu-ansi-term" ];
2021-11-14 16:20:02 +00:00
# setid is not allowed in the sandbox
checkFlags = [ "--skip=tests::style_for_setid" ];
2021-02-23 10:22:01 +00:00
meta = with lib; {
description = "Rust library and tool to colorize paths using LS_COLORS";
homepage = "https://github.com/sharkdp/lscolors";
changelog = "https://github.com/sharkdp/lscolors/releases/tag/v${version}";
2021-11-14 16:20:02 +00:00
license = with licenses; [ asl20 /* or */ mit ];
2021-02-23 10:22:01 +00:00
maintainers = with maintainers; [ SuperSandro2000 ];
};
}