silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / by-name / ph / phrase-cli / package.nix
blob0a52c3366d3783f8aeac720c0e1aa28fe596118c
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "phrase-cli";
5   version = "2.34.1";
7   src = fetchFromGitHub {
8     owner = "phrase";
9     repo = "phrase-cli";
10     rev = version;
11     sha256 = "sha256-N+1kh4p6gzBnWPSs7U4Ay1kUtJ04W3G0f+PzzwCylRQ=";
12   };
14   vendorHash = "sha256-mfg10IwrPiLpI+9Y0QybKS8wOBnt3+tqsXgtGV1eHAs=";
16   ldflags = [ "-X=github.com/phrase/phrase-cli/cmd.PHRASE_CLIENT_VERSION=${version}" ];
18   postInstall = ''
19     ln -s $out/bin/phrase-cli $out/bin/phrase
20   '';
22   meta = with lib; {
23     homepage = "http://docs.phraseapp.com";
24     description = "PhraseApp API v2 Command Line Client";
25     changelog = "https://github.com/phrase/phrase-cli/blob/${version}/CHANGELOG.md";
26     license = licenses.mit;
27     maintainers = with maintainers; [ juboba ];
28   };