mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 23:52:33 +00:00
26 lines
655 B
Nix
26 lines
655 B
Nix
{ buildGoModule, fetchFromGitHub, stdenv, Security }:
|
|
|
|
buildGoModule rec {
|
|
pname = "minify";
|
|
version = "2.7.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tdewolff";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "12jns7m9liyjg9wy8ynvji2d2g4k2z1ymp6k3610mivmvg159sy4";
|
|
};
|
|
|
|
modSha256 = "09jk3mxf7n9wf1cgyiw9mhsr55fb12k399dmzhnib3vhd9xav15i";
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Minifiers for web formats";
|
|
license = licenses.mit;
|
|
homepage = "https://go.tacodewolff.nl/minify";
|
|
};
|
|
}
|