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