summary refs log tree commit diff
path: root/pkgs/tools/misc/phraseapp-client/default.nix
blob: a66a6688ad412af3139e5df0d11f8e1f69a263e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "phraseapp-client";
  version = "1.11.0";

  goPackagePath = "github.com/phrase/phraseapp-client";
  subPackages = [ "." ];

  src = fetchFromGitHub {
    owner = "phrase";
    repo = "phraseapp-client";
    rev = version;
    sha256 = "0lfx0wv95hgczi74qnkw2cripwgvl53z2gi5i6nyflisy4r7vvkr";
  };

  postInstall = ''
    ln -s $bin/bin/phraseapp-client $bin/bin/phraseapp
  '';

  meta = with stdenv.lib; {
    homepage = "http://docs.phraseapp.com";
    description = "PhraseApp API v2 Command Line Client";
    platforms = platforms.all;
    license = licenses.mit;
    maintainers = with maintainers; [ manveru ];
  };
}