2020-03-27 07:33:21 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2016-06-21 14:57:50 +01:00
|
|
|
|
2019-05-19 16:17:43 +01:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "minify";
|
2020-05-19 20:17:57 +01:00
|
|
|
version = "2.7.4";
|
2016-06-21 14:57:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tdewolff";
|
2019-05-19 16:17:43 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-19 20:17:57 +01:00
|
|
|
sha256 = "06xzb681g4lfrpqa1rhpq5mm83vpik8qp6gjxqm2n21bfph88jm2";
|
2016-06-21 14:57:50 +01:00
|
|
|
};
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = "120d3nzk8cr5496cxp5p6ydlzw9mmpg7dllqhv1kpgwlbxmd8vr3";
|
2020-03-14 08:51:26 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-14 08:51:26 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
2019-05-19 16:17:43 +01:00
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-05-19 16:17:43 +01:00
|
|
|
description = "Minifiers for web formats";
|
|
|
|
license = licenses.mit;
|
2020-03-14 08:51:26 +00:00
|
|
|
homepage = "https://go.tacodewolff.nl/minify";
|
2019-05-19 16:17:43 +01:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|