summary refs log tree commit diff
path: root/pkgs/applications/misc/et/default.nix
blob: 23b2a57ea33ee2f09ba7627300d69d65ad96b66d (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
{ stdenv, fetchFromGitHub, pkgconfig, libnotify, gdk_pixbuf }:

stdenv.mkDerivation rec {
  name = "et-${version}";
  version = "2017-03-04";

  src = fetchFromGitHub {
    owner = "geistesk";
    repo = "et";
    rev = "151e9b6bc0d2d4f45bda8ced740ee99d0f2012f6";
    sha256 = "1a1jdnzmal05k506bbvzlwsj2f3kql6l5xc1gdabm79y6vaf4r7s";
  };

  buildInputs = [ libnotify gdk_pixbuf ];
  nativeBuildInputs = [ pkgconfig ];

  installPhase = ''
    mkdir -p $out/bin
    cp et $out/bin
    cp et-status.sh $out/bin/et-status
  '';

  meta = with stdenv.lib; {
    description = "Minimal libnotify-based (egg) timer for GNU/Linux";
    homepage = https://github.com/geistesk/et;
    license = licenses.gpl3;
    platforms = platforms.unix;
    maintainers = with maintainers; [ geistesk ];
  };
}