at 23.11-beta 37 lines 834 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "container2wasm"; 8 version = "0.5.1"; 9 10 src = fetchFromGitHub { 11 owner = "ktock"; 12 repo = "container2wasm"; 13 rev = "refs/tags/v${version}"; 14 hash = "sha256-ba40Nu2tVrRSvVeGxlrn0Bw+xQqWeli40lwBWOXSNTA="; 15 }; 16 17 vendorHash = "sha256-tyfLWmxAzFc0JuSem8L0HPG4wy9Gxdp8F/J3DyOx6rQ="; 18 19 ldflags = [ 20 "-s" 21 "-w" 22 "-X=github.com/ktock/container2wasm/version.Version=${version}" 23 ]; 24 25 subPackages = [ 26 "cmd/c2w" 27 ]; 28 29 meta = with lib; { 30 description = "Container to WASM converter"; 31 homepage = "https://github.com/ktock/container2wasm"; 32 changelog = "https://github.com/ktock/container2wasm/releases/tag/v${version}"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ dit7ya ]; 35 mainProgram = "c2w"; 36 }; 37}