biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / phrase-cli / default.nix
blob4eed616d7831416de255439eca05f2d1d237121b
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "phrase-cli";
5   version = "2.33.1";
7   src = fetchFromGitHub {
8     owner = "phrase";
9     repo = "phrase-cli";
10     rev = version;
11     sha256 = "sha256-F9uFw0SEUS0uH5cPPBFwx7mWQHX53EtQtauauH3/6p8=";
12   };
14   vendorHash = "sha256-1STRCr8zn6Hhj4Y/QHNo7QX/faN8V8AOmikflv8ipng=";
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   };