mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
38 lines
834 B
Nix
38 lines
834 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "container2wasm";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ktock";
|
|
repo = "container2wasm";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-m8pO7xkYjwvDoDreOPuiKNavFWcHn8Fy+F/eArBWRPM=";
|
|
};
|
|
|
|
vendorHash = "sha256-BiQzNXEZ7O+Xb2SQKYVQRMtm/fSmr+PD+RBLpCywkyQ=";
|
|
|
|
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";
|
|
};
|
|
}
|