nixpkgs/pkgs/development/tools/container2wasm/default.nix

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

38 lines
834 B
Nix
Raw Normal View History

2023-08-24 20:35:03 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "container2wasm";
2024-01-04 05:32:30 +00:00
version = "0.5.3";
2023-08-24 20:35:03 +00:00
src = fetchFromGitHub {
owner = "ktock";
repo = "container2wasm";
2023-10-02 20:27:00 +00:00
rev = "refs/tags/v${version}";
2024-01-04 05:32:30 +00:00
hash = "sha256-ttRl7buVi0bei3zqq1smzLOEdsgtaFdS/S9VIcMgF8w=";
2023-08-24 20:35:03 +00:00
};
2024-01-04 05:32:30 +00:00
vendorHash = "sha256-m2KBO14vwSgYkw2aE2AIbkk91dzb83B9n3QSx4YGiME=";
2023-08-24 20:35:03 +00:00
2023-10-02 20:27:00 +00:00
ldflags = [
"-s"
"-w"
"-X=github.com/ktock/container2wasm/version.Version=${version}"
2023-10-02 20:27:00 +00:00
];
2023-08-24 20:35:03 +00:00
2023-10-02 20:27:00 +00:00
subPackages = [
"cmd/c2w"
];
2023-08-24 20:35:03 +00:00
2023-10-02 20:27:00 +00:00
meta = with lib; {
2023-08-24 20:35:03 +00:00
description = "Container to WASM converter";
homepage = "https://github.com/ktock/container2wasm";
2023-10-02 20:27:00 +00:00
changelog = "https://github.com/ktock/container2wasm/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
2023-08-24 20:35:03 +00:00
mainProgram = "c2w";
};
}