2020-04-24 23:36:52 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "minify";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "2.9.21";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tdewolff";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-cHoQtvxofMet7j/PDKlFoVB9Qo5EMWcXqAwhqR4vNko=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
vendorSha256 = "sha256-awlrjXXX9PWs4dt78yK4qNE1wCaA+tGL45tHQxxby8c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Minifiers for web formats";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://go.tacodewolff.nl/minify";
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|