14 src = fetchFromGitHub {
18 hash = "sha256-CpZhKt+14pf10L84ijaPPoDKdHmGirAdUkRbQbwB+Kw=";
21 vendorHash = "sha256-WbEl6/dhWZ9TwW/Hc9GX5hbiKgjndMfyqizHD/hA5h0=";
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";