Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 29 lines 846 B view raw
1{ lib, rustPlatform, fetchFromGitHub }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "shellharden"; 5 version = "4.3.1"; 6 7 src = fetchFromGitHub { 8 owner = "anordal"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-aBX3RXfDhlXVMV8aPO0pu3527nDoYrUDUbH6crWO/W8="; 12 }; 13 14 cargoHash = "sha256-/t5dsDOokuUC0ZG8hPzsUoAvteLHWby6eKZNtnL/XUw="; 15 16 postPatch = "patchShebangs moduletests/run"; 17 18 meta = with lib; { 19 description = "Corrective bash syntax highlighter"; 20 mainProgram = "shellharden"; 21 longDescription = '' 22 Shellharden is a syntax highlighter and a tool to semi-automate the 23 rewriting of scripts to ShellCheck conformance, mainly focused on quoting. 24 ''; 25 homepage = "https://github.com/anordal/shellharden"; 26 license = licenses.mpl20; 27 maintainers = with maintainers; [ oxzi ]; 28 }; 29}