2020-03-27 07:33:21 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2016-06-21 13:57:50 +00:00
|
|
|
|
2019-05-19 15:17:43 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "minify";
|
2022-04-17 15:14:43 +00:00
|
|
|
version = "2.11.1";
|
2016-06-21 13:57:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tdewolff";
|
2019-05-19 15:17:43 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-17 15:14:43 +00:00
|
|
|
sha256 = "sha256-qna2u+Y4eRGLNvRKDbL/VQud1pn8b1wWzbKQM1p0Yws=";
|
2016-06-21 13:57:50 +00:00
|
|
|
};
|
|
|
|
|
2022-04-17 15:14:43 +00:00
|
|
|
vendorSha256 = "sha256-stj3fOaPM70kF6vTX/DEs4qFq/O0Vq0TFw0J/3L5NmA=";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
|
2019-05-19 15:17:43 +00:00
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-05-19 15:17:43 +00:00
|
|
|
description = "Minifiers for web formats";
|
|
|
|
license = licenses.mit;
|
2020-03-14 08:51:26 +00:00
|
|
|
homepage = "https://go.tacodewolff.nl/minify";
|
2022-04-17 15:14:43 +00:00
|
|
|
downloadPage = "https://github.com/tdewolff/minify";
|
2019-05-19 15:17:43 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|