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

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

30 lines
798 B
Nix
Raw Normal View History

2022-02-11 07:33:01 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "phrase-cli";
2024-08-05 07:29:03 +00:00
version = "2.31.2";
2022-02-11 07:33:01 +00:00
src = fetchFromGitHub {
owner = "phrase";
repo = "phrase-cli";
rev = version;
2024-08-05 07:29:03 +00:00
sha256 = "sha256-8aoljsX2BSwnApDDPSPjuU2BgAY1vf+JrrYlfo6jJqY=";
2022-02-11 07:33:01 +00:00
};
2024-08-05 07:29:03 +00:00
vendorHash = "sha256-2KGYEcKRX1G2L38ECkjDOBSSO9+pAxF3t5NN3ggvSac=";
2022-06-05 09:30:33 +00:00
ldflags = [ "-X=github.com/phrase/phrase-cli/cmd.PHRASE_CLIENT_VERSION=${version}" ];
2022-02-11 07:33:01 +00: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";
2023-09-24 06:11:00 +00:00
changelog = "https://github.com/phrase/phrase-cli/blob/${version}/CHANGELOG.md";
2022-02-11 07:33:01 +00:00
license = licenses.mit;
maintainers = with maintainers; [ juboba ];
};
}