nixpkgs/pkgs/development/tools/shellharden/default.nix

29 lines
821 B
Nix
Raw Normal View History

2021-04-04 08:52:27 +00:00
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "shellharden";
2021-11-08 10:37:19 +00:00
version = "4.1.3";
2021-04-04 08:52:27 +00:00
src = fetchFromGitHub {
owner = "anordal";
repo = pname;
rev = "v${version}";
2021-11-08 10:37:19 +00:00
sha256 = "04pgmkaqjb1lmlwjjipcrqh9qcyjjkr39vi3h5fl9sr71c8g7dnd";
2021-04-04 08:52:27 +00:00
};
2021-11-08 10:37:19 +00:00
cargoSha256 = "0bjqgw49msl288yfa7bl31bfa9kdy4zh1q3j0lyw4vvkv2r14pf5";
2021-04-04 08:52:27 +00:00
postPatch = "patchShebangs moduletests/run";
meta = with lib; {
description = "The corrective bash syntax highlighter";
longDescription = ''
Shellharden is a syntax highlighter and a tool to semi-automate the
rewriting of scripts to ShellCheck conformance, mainly focused on quoting.
'';
homepage = "https://github.com/anordal/shellharden";
license = licenses.mpl20;
maintainers = with maintainers; [ oxzi ];
};
}