2020-04-24 23:36:52 +00:00
|
|
|
{ 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 = ''
|
2020-05-15 21:57:56 +00:00
|
|
|
ln -s $out/bin/phraseapp-client $out/bin/phraseapp
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://docs.phraseapp.com";
|
|
|
|
description = "PhraseApp API v2 Command Line Client";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ manveru ];
|
|
|
|
};
|
|
|
|
}
|