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

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

28 lines
818 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";
2024-01-25 12:05:37 +00:00
version = "0.17.0";
2021-02-23 10:22:01 +00:00
2021-10-03 14:34:17 +00:00
src = fetchCrate {
inherit version pname;
2024-01-25 12:05:37 +00:00
hash = "sha256-efkSiwxL7sZIwFXJZunddAb4lTOfhj8oOEOUW3kyRXI=";
2021-02-23 10:22:01 +00:00
};
2024-01-25 12:05:37 +00:00
cargoHash = "sha256-1Cyg4WT4xYqc3s5AOXR9GfcS3qKOgscYujGXR9fzuCA=";
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 ];
2024-02-11 02:19:15 +00:00
mainProgram = "lscolors";
2021-02-23 10:22:01 +00:00
};
}