ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
29 lines
749 B
Nix
29 lines
749 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=";
|
|
};
|
|
|
|
vendorHash = "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";
|
|
};
|
|
}
|