2022-08-21 13:32:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "stuffbin";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.2.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = null;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "knadh";
|
|
|
|
repo = "stuffbin";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-roXjE0t4iwrL2y/G2oePYL2AbTwd9uzQPtgdY14WeZk=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Compress and embed static files and assets into Go binaries and access them with a virtual file system in production";
|
|
|
|
homepage = "https://github.com/knadh/stuffbin";
|
|
|
|
changelog = "https://github.com/knadh/stuffbin/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ raitobezarius ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|