python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / phrase-cli / default.nix
blobca8ef5319dd5a8db671babef981184b5977d4691
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "phrase-cli";
5   version = "2.5.4";
7   src = fetchFromGitHub {
8     owner = "phrase";
9     repo = "phrase-cli";
10     rev = version;
11     sha256 = "sha256-4+PS85cZZR8lKjBTtWC72P713dYO+8IDZbiTNKY/YDA=";
12   };
14   vendorSha256 = "sha256-LlMBV52CG1uYW7I/e0VwoIIr0wk3ysc5gqrAlFRPsvE=";
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     license = licenses.mit;
26     maintainers = with maintainers; [ juboba ];
27   };