btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / listmonk / stuffbin.nix
blob132a34a017e863a88654d03f55ec22b452e74d60
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "stuffbin";
5   version = "1.1.0";
7   vendorHash = null;
9   src = fetchFromGitHub {
10     owner = "knadh";
11     repo = "stuffbin";
12     rev = "v${version}";
13     hash = "sha256-M72xNh7bKUMLzA+M8bJB++kJ5KCrkboQm1v8BasP3Yo=";
14   };
16   ldflags = [ "-s" "-w" "-X main.version=${version}" ];
18   meta = with lib; {
19     description = "Compress and embed static files and assets into Go binaries and access them with a virtual file system in production";
20     homepage = "https://github.com/knadh/stuffbin";
21     changelog = "https://github.com/knadh/stuffbin/releases/tag/v${version}";
22     maintainers = with maintainers; [ raitobezarius ];
23     license = licenses.mit;
24   };