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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
613 B
Nix
Raw Normal View History

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