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

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

30 lines
850 B
Nix
Raw Normal View History

2021-04-04 11:52:27 +03:00
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "shellharden";
2024-03-24 17:57:47 +03:00
version = "4.3.1";
2021-04-04 11:52:27 +03:00
src = fetchFromGitHub {
owner = "anordal";
repo = pname;
rev = "v${version}";
2024-03-24 17:57:47 +03:00
sha256 = "sha256-aBX3RXfDhlXVMV8aPO0pu3527nDoYrUDUbH6crWO/W8=";
2021-04-04 11:52:27 +03:00
};
2024-03-24 17:57:47 +03:00
cargoHash = "sha256-/t5dsDOokuUC0ZG8hPzsUoAvteLHWby6eKZNtnL/XUw=";
2021-04-04 11:52:27 +03:00
postPatch = "patchShebangs moduletests/run";
meta = with lib; {
description = "The corrective bash syntax highlighter";
mainProgram = "shellharden";
2021-04-04 11:52:27 +03:00
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 ];
};
}