3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/lokalise2-cli/default.nix

30 lines
752 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-07-20 18:40:49 +01:00
buildGoModule rec {
pname = "lokalise2-cli";
2021-02-03 16:35:07 +00:00
version = "2.6.3";
2020-07-20 18:40:49 +01:00
src = fetchFromGitHub {
owner = "lokalise";
repo = "lokalise-cli-2-go";
rev = "v${version}";
2021-02-03 16:35:07 +00:00
sha256 = "sha256-3kDaaPDRbhJyp/CblTKhB0dUeOjroCs3WkjEXL87Od4=";
2020-07-20 18:40:49 +01:00
};
2021-02-03 16:35:07 +00:00
vendorSha256 = "sha256-iWYlbGeLp/SiF8/OyWGIHJQB1RJjma9/EDc3zOsjNG8=";
2020-07-20 18:40:49 +01:00
doCheck = false;
2020-07-20 18:40:49 +01:00
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";
2020-07-20 18:40:49 +01:00
homepage = "https://lokalise.com";
license = licenses.bsd3;
maintainers = with maintainers; [ timstott ];
platforms = platforms.unix;
};
}