1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/tools/misc/phraseapp-client/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

29 lines
699 B
Nix

{ 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 = ''
ln -s $bin/bin/phraseapp-client $bin/bin/phraseapp
'';
meta = with stdenv.lib; {
homepage = http://docs.phraseapp.com;
description = "PhraseApp API v2 Command Line Client";
platforms = platforms.all;
license = licenses.mit;
maintainers = with maintainers; [ manveru ];
};
}