2021-04-05 15:23:46 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "shellharden";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "4.2.0";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anordal";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "081b51h88hhyzn9vb9pcszz1wfdj73xwsyfn2ygz708kabzqpvdl";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
cargoSha256 = "1gwlmds417szwvywvm19wv60a83inp52sf46sd05x5vahb8gv8hg";
|
2021-04-05 15:23:46 +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 ];
|
|
|
|
};
|
|
|
|
}
|