14 src = fetchFromGitHub {
18 hash = "sha256-+oaK6OdBRxtWW+0zp+pbCcGyphuOLzyv/LfjDqDiTGw=";
21 vendorHash = "sha256-GQqdr0zMQhi6QfLAyFchtWPOGfpo5yODDinKWA/s+qs=";
23 nativeBuildInputs = [ installShellFiles ];
25 ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
27 subPackages = [ "cmd/minify" ];
30 updateScript = nix-update-script { };
31 tests.version = testers.testVersion {
34 command = "minify --version";
39 installShellCompletion --cmd minify --bash cmd/minify/bash_completion
43 description = "Go minifiers for web formats";
44 homepage = "https://go.tacodewolff.nl/minify";
45 downloadPage = "https://github.com/tdewolff/minify";
46 changelog = "https://github.com/tdewolff/minify/releases/tag/v${version}";
47 license = licenses.mit;
48 maintainers = with maintainers; [ gaelreyrol ];
49 mainProgram = "minify";