depot/third_party/nixpkgs/pkgs/tools/misc/phrase-cli/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

28 lines
712 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "phrase-cli";
version = "2.7.0";
src = fetchFromGitHub {
owner = "phrase";
repo = "phrase-cli";
rev = version;
sha256 = "sha256-1ocLvpesL0Cu6f1PYaOBzKj5set1Sqm/n5MPgawOOfk=";
};
vendorHash = "sha256-CMJjeVTydxyLNW/937sojrjbENR00/HMEbY/gOYMNFs=";
ldflags = [ "-X=github.com/phrase/phrase-cli/cmd.PHRASE_CLIENT_VERSION=${version}" ];
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 ];
};
}