2017-03-17 21:50:50 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "phraseapp-client";
|
2018-09-28 23:38:17 +02:00
|
|
|
version = "1.11.0";
|
2017-03-17 21:50:50 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/phrase/phraseapp-client";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phrase";
|
|
|
|
repo = "phraseapp-client";
|
|
|
|
rev = version;
|
2018-09-28 23:38:17 +02:00
|
|
|
sha256 = "0lfx0wv95hgczi74qnkw2cripwgvl53z2gi5i6nyflisy4r7vvkr";
|
2017-03-17 21:50:50 +01:00
|
|
|
};
|
|
|
|
|
2018-09-28 23:38:17 +02:00
|
|
|
postInstall = ''
|
2020-04-28 03:50:57 +02:00
|
|
|
ln -s $out/bin/phraseapp-client $out/bin/phraseapp
|
2018-09-28 23:38:17 +02:00
|
|
|
'';
|
|
|
|
|
2017-03-17 21:50:50 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://docs.phraseapp.com";
|
2017-03-17 21:50:50 +01:00
|
|
|
description = "PhraseApp API v2 Command Line Client";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ manveru ];
|
|
|
|
};
|
|
|
|
}
|