nixpkgs/pkgs/tools/misc/lokalise2-cli/default.nix
2022-04-14 10:24:01 -07:00

30 lines
783 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "lokalise2-cli";
version = "2.6.8";
src = fetchFromGitHub {
owner = "lokalise";
repo = "lokalise-cli-2-go";
rev = "v${version}";
sha256 = "sha256-U8XN7cH64ICVxcjmIWBeelOT3qQlGt6MhOPgUWkCPF0=";
};
vendorSha256 = "sha256-PM3Jjgq6mbM6iVCXRos9UsqqFNaXOqq713GZ2R9tQww=";
doCheck = false;
postInstall = ''
mv $out/bin/lokalise-cli-2-go $out/bin/lokalise2
'';
meta = with lib; {
description = "Translation platform for developers. Upload language files, translate, integrate via API";
homepage = "https://lokalise.com";
license = licenses.bsd3;
maintainers = with maintainers; [ timstott ];
mainProgram = "lokalise2";
platforms = platforms.unix;
};
}