diff --git a/pkgs/development/tools/container2wasm/default.nix b/pkgs/development/tools/container2wasm/default.nix index e1be70173251..633baceb589a 100644 --- a/pkgs/development/tools/container2wasm/default.nix +++ b/pkgs/development/tools/container2wasm/default.nix @@ -5,26 +5,33 @@ buildGoModule rec { pname = "container2wasm"; - version = "0.4.0"; + version = "0.5.1"; src = fetchFromGitHub { owner = "ktock"; repo = "container2wasm"; - rev = "v${version}"; - hash = "sha256-m8pO7xkYjwvDoDreOPuiKNavFWcHn8Fy+F/eArBWRPM="; + rev = "refs/tags/v${version}"; + hash = "sha256-ba40Nu2tVrRSvVeGxlrn0Bw+xQqWeli40lwBWOXSNTA="; }; - vendorHash = "sha256-BiQzNXEZ7O+Xb2SQKYVQRMtm/fSmr+PD+RBLpCywkyQ="; + vendorHash = "sha256-tyfLWmxAzFc0JuSem8L0HPG4wy9Gxdp8F/J3DyOx6rQ="; - ldflags = [ "-s" "-w" ]; + ldflags = [ + "-s" + "-w" + "-X=github.com/ktock/container2wasm/version.Version=${version}" + ]; - subPackages = [ "cmd/c2w" ]; + subPackages = [ + "cmd/c2w" + ]; - meta = { + meta = with lib; { description = "Container to WASM converter"; homepage = "https://github.com/ktock/container2wasm"; - license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ dit7ya ]; + changelog = "https://github.com/ktock/container2wasm/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ dit7ya ]; mainProgram = "c2w"; }; }