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-03-14 08:51:26 +00:00
|
|
|
version = "2.7.3";
|
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-03-14 08:51:26 +00:00
|
|
|
sha256 = "12jns7m9liyjg9wy8ynvji2d2g4k2z1ymp6k3610mivmvg159sy4";
|
2016-06-21 14:57:50 +01:00
|
|
|
};
|
|
|
|
|
2020-03-14 08:51:26 +00:00
|
|
|
modSha256 = "09jk3mxf7n9wf1cgyiw9mhsr55fb12k399dmzhnib3vhd9xav15i";
|
|
|
|
|
|
|
|
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
|
|
|
};
|
2016-06-21 14:57:50 +01:00
|
|
|
}
|