nixpkgs-suyu/pkgs/development/web/minify/default.nix
2022-02-12 15:27:58 +00:00

25 lines
576 B
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "minify";
version = "2.10.0";
src = fetchFromGitHub {
owner = "tdewolff";
repo = pname;
rev = "v${version}";
sha256 = "sha256-4wF9bRLrGQftw54b+HrsoJOGsTRTNYVDEMsKsFqnHGY=";
};
vendorSha256 = "sha256-4aoDQKMhczy1u4Eq567aMrFVIBW2L8OgNCqsgmUN6CI=";
doCheck = false;
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
meta = with lib; {
description = "Minifiers for web formats";
license = licenses.mit;
homepage = "https://go.tacodewolff.nl/minify";
};
}