Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 33 lines 752 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "stuffbin"; 9 version = "1.3.0"; 10 11 vendorHash = null; 12 13 src = fetchFromGitHub { 14 owner = "knadh"; 15 repo = "stuffbin"; 16 rev = "v${version}"; 17 sha256 = "sha256-dOlc/G2IiuMAN0LqiZtbpXLSYaOpe5cl1+cs3YhaAbg="; 18 }; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X main.version=${version}" 24 ]; 25 26 meta = { 27 description = "Compress and embed static files and assets into Go binaries and access them with a virtual file system in production"; 28 homepage = "https://github.com/knadh/stuffbin"; 29 changelog = "https://github.com/knadh/stuffbin/releases/tag/v${version}"; 30 maintainers = with lib.maintainers; [ raitobezarius ]; 31 license = lib.licenses.mit; 32 }; 33}