nixpkgs-suyu/pkgs/development/web/minify/default.nix

23 lines
569 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
2016-06-21 15:57:50 +02:00
buildGoModule rec {
pname = "minify";
2020-03-14 09:51:26 +01:00
version = "2.7.3";
2016-06-21 15:57:50 +02:00
src = fetchFromGitHub {
owner = "tdewolff";
repo = pname;
rev = "v${version}";
2020-03-14 09:51:26 +01:00
sha256 = "12jns7m9liyjg9wy8ynvji2d2g4k2z1ymp6k3610mivmvg159sy4";
2016-06-21 15:57:50 +02:00
};
vendorSha256 = "120d3nzk8cr5496cxp5p6ydlzw9mmpg7dllqhv1kpgwlbxmd8vr3";
2020-03-14 09:51:26 +01:00
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
meta = with lib; {
description = "Minifiers for web formats";
license = licenses.mit;
2020-03-14 09:51:26 +01:00
homepage = "https://go.tacodewolff.nl/minify";
};
}