2022-02-20 05:27:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "phrase-cli";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "2.29.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phrase";
|
|
|
|
repo = "phrase-cli";
|
|
|
|
rev = version;
|
2024-07-01 15:47:52 +00:00
|
|
|
sha256 = "sha256-5f38D1+nK/yxJSdw4pgCfmWYlgCFxaE9Oey8/UwvR30=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
vendorHash = "sha256-Uqp+ZEdWDW5sA9EfjYX2ydMGmcGI4rPUINb3D2RlrQY=";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
ldflags = [ "-X=github.com/phrase/phrase-cli/cmd.PHRASE_CLIENT_VERSION=${version}" ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/phrase-cli $out/bin/phrase
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://docs.phraseapp.com";
|
|
|
|
description = "PhraseApp API v2 Command Line Client";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/phrase/phrase-cli/blob/${version}/CHANGELOG.md";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ juboba ];
|
|
|
|
};
|
|
|
|
}
|