summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/oysttyer/default.nix
blob: 33f3b90873d769cf00d2eb6e9c7256af4b03265b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ stdenv, lib, perl, perlPackages, coreutils,
fetchFromGitHub, makeWrapper }:

stdenv.mkDerivation rec {
  pname = "oysttyer";
  version = "2.10.0";

  src = fetchFromGitHub {
    owner  = "oysttyer";
    repo   = "oysttyer";
    rev    = version;
    sha256 = "0cm1hvi68iqgjsg15xdii271pklgzjn9j9afb1c460z71kgy3wz2";
  };

  buildInputs = [
    perl
    makeWrapper
  ];

  propagatedBuildInputs = with perlPackages; [
    DateTimeFormatDateParse
    TermReadLineTTYtter
    TermReadKey
  ];

  installPhase = ''
    ${coreutils}/bin/install -Dm755 \
      oysttyer.pl \
      $out/bin/oysttyer

    wrapProgram $out/bin/oysttyer \
      --prefix PERL5LIB : $PERL5LIB
  '';

  meta = with lib; {
    description = "Perl Console Twitter Client";
    homepage    = "http://oysttyer.github.io/";
    maintainers = with maintainers; [ woffs ];
    license = with licenses; [ ffsl ];
  };
}