nixpkgs-suyu/pkgs/tools/misc/lokalise2-cli/default.nix

30 lines
752 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-07-20 19:40:49 +02:00
buildGoModule rec {
pname = "lokalise2-cli";
2021-08-14 16:43:06 +02:00
version = "2.6.7";
2020-07-20 19:40:49 +02:00
src = fetchFromGitHub {
owner = "lokalise";
repo = "lokalise-cli-2-go";
rev = "v${version}";
2021-08-14 16:43:06 +02:00
sha256 = "sha256-p3JvaDDebbIgOvTh0e7yYe3qOXvj1pLSG95hpK62M7s=";
2020-07-20 19:40:49 +02:00
};
2021-08-14 16:43:06 +02:00
vendorSha256 = "sha256-KJ8haktP9qoG5QsKnTOkvE8L+SQ9Z6hrsjUeS0wrdLs=";
2020-07-20 19:40:49 +02:00
doCheck = false;
2020-07-20 19:40:49 +02: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 19:40:49 +02:00
homepage = "https://lokalise.com";
license = licenses.bsd3;
maintainers = with maintainers; [ timstott ];
platforms = platforms.unix;
};
}