2022-02-20 05:27:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "phrase-cli";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "2.5.2";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phrase";
|
|
|
|
repo = "phrase-cli";
|
|
|
|
rev = version;
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-VE9HsNZJ6bPgqhWUpxf5/dC6giGaK3H9bawSs0S2SJ8=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
vendorSha256 = "sha256-1TXDGs3ByBX8UQWoiT7hFZpwbwFlDhHHU03zw4+Zml0=";
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ juboba ];
|
|
|
|
};
|
|
|
|
}
|