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

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

26 lines
576 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
2016-06-21 13:57:50 +00:00
buildGoModule rec {
pname = "minify";
2022-02-12 15:27:58 +00:00
version = "2.10.0";
2016-06-21 13:57:50 +00:00
src = fetchFromGitHub {
owner = "tdewolff";
repo = pname;
rev = "v${version}";
2022-02-12 15:27:58 +00:00
sha256 = "sha256-4wF9bRLrGQftw54b+HrsoJOGsTRTNYVDEMsKsFqnHGY=";
2016-06-21 13:57:50 +00:00
};
2022-01-24 19:24:16 +00:00
vendorSha256 = "sha256-4aoDQKMhczy1u4Eq567aMrFVIBW2L8OgNCqsgmUN6CI=";
2020-03-14 08:51:26 +00:00
doCheck = false;
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";
};
}