nixpkgs/pkgs/by-name/st/stuffbin/package.nix

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

26 lines
733 B
Nix
Raw Normal View History

2022-08-05 23:39:33 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "stuffbin";
2023-12-24 09:37:47 +00:00
version = "1.3.0";
2022-08-05 23:39:33 +01:00
vendorHash = null;
2022-08-05 23:39:33 +01:00
src = fetchFromGitHub {
owner = "knadh";
repo = "stuffbin";
rev = "v${version}";
2023-12-24 09:37:47 +00:00
sha256 = "sha256-dOlc/G2IiuMAN0LqiZtbpXLSYaOpe5cl1+cs3YhaAbg=";
2022-08-05 23:39:33 +01: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;
};
}