nixpkgs/pkgs/development/tools/container2wasm/default.nix
2024-01-22 19:58:18 +00:00

38 lines
834 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "container2wasm";
version = "0.6.2";
src = fetchFromGitHub {
owner = "ktock";
repo = "container2wasm";
rev = "refs/tags/v${version}";
hash = "sha256-Vsy3K9gLWgfKK7aszpSX4JbiNSL6ao9vbQUgIxkVr2M=";
};
vendorHash = "sha256-xVHBL0bWXisXoRdGb4638+m9mxZZivkoo1U5rr6jG/0=";
ldflags = [
"-s"
"-w"
"-X=github.com/ktock/container2wasm/version.Version=${version}"
];
subPackages = [
"cmd/c2w"
];
meta = with lib; {
description = "Container to WASM converter";
homepage = "https://github.com/ktock/container2wasm";
changelog = "https://github.com/ktock/container2wasm/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
mainProgram = "c2w";
};
}