nixpkgs-suyu/pkgs/tools/misc/phrase-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
714 B
Nix
Raw Normal View History

2022-02-11 08:33:01 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "phrase-cli";
2022-08-13 21:46:49 +02:00
version = "2.5.1";
2022-02-11 08:33:01 +01:00
src = fetchFromGitHub {
owner = "phrase";
repo = "phrase-cli";
rev = version;
2022-08-13 21:46:49 +02:00
sha256 = "sha256-nDeX8h2rGKIuN2h29Fmr5V7THVXnw23lyn/FKUQ3veM=";
2022-02-11 08:33:01 +01:00
};
2022-08-13 21:46:49 +02:00
vendorSha256 = "sha256-Y/COa58r/1wN+bkUolXov+LOy0nyXgbUYbkmRWXxl0E=";
2022-06-05 11:30:33 +02:00
ldflags = [ "-X=github.com/phrase/phrase-cli/cmd.PHRASE_CLIENT_VERSION=${version}" ];
2022-02-11 08:33:01 +01:00
postInstall = ''
ln -s $out/bin/phrase-cli $out/bin/phrase
'';
meta = with lib; {
homepage = "http://docs.phraseapp.com";
description = "PhraseApp API v2 Command Line Client";
license = licenses.mit;
maintainers = with maintainers; [ juboba ];
};
}