Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, rustPlatform, fetchFromGitHub }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "shellharden"; 5 version = "4.3.0"; 6 7 src = fetchFromGitHub { 8 owner = "anordal"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-yOfGMxNaaw5ub7woShDMCJNiz6FgV5IBJN87VmORLvg="; 12 }; 13 14 cargoSha256 = "sha256-o3CBnxEQNmvn+h/QArIkzi9xfZzIngvwHpkMT+PItY4="; 15 16 postPatch = "patchShebangs moduletests/run"; 17 18 meta = with lib; { 19 description = "The corrective bash syntax highlighter"; 20 longDescription = '' 21 Shellharden is a syntax highlighter and a tool to semi-automate the 22 rewriting of scripts to ShellCheck conformance, mainly focused on quoting. 23 ''; 24 homepage = "https://github.com/anordal/shellharden"; 25 license = licenses.mpl20; 26 maintainers = with maintainers; [ oxzi ]; 27 }; 28}