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 23:35:03 +03:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "container2wasm";
2024-03-12 15:33:42 +03:00
version = "0.6.3";
2023-08-24 23:35:03 +03:00
src = fetchFromGitHub {
owner = "ktock";
repo = "container2wasm";
2023-10-02 23:27:00 +03:00
rev = "refs/tags/v${version}";
2024-03-12 15:33:42 +03:00
hash = "sha256-WMtkMBiAlHLwOgbnyrbERXaf4eGEVwpVvffaES6bSbo=";
2023-08-24 23:35:03 +03:00
};
2024-03-12 15:33:42 +03:00
vendorHash = "sha256-3gI2ZT+8GXttbX1985fSWmMbQzrERFKnlSwFvSQIGBg=";
2023-08-24 23:35:03 +03:00
2023-10-02 23:27:00 +03:00
ldflags = [
"-s"
"-w"
"-X=github.com/ktock/container2wasm/version.Version=${version}"
2023-10-02 23:27:00 +03:00
];
2023-08-24 23:35:03 +03:00
2023-10-02 23:27:00 +03:00
subPackages = [
"cmd/c2w"
];
2023-08-24 23:35:03 +03:00
2023-10-02 23:27:00 +03:00
meta = with lib; {
2023-08-24 23:35:03 +03:00
description = "Container to WASM converter";
homepage = "https://github.com/ktock/container2wasm";
2023-10-02 23:27:00 +03:00
changelog = "https://github.com/ktock/container2wasm/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
2023-08-24 23:35:03 +03:00
mainProgram = "c2w";
};
}