summary refs log tree commit diff
path: root/pkgs/applications/misc/et/default.nix
blob: bf1ae3037fc42ff2e367145865abb43d82d89535 (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 = "0.1.1";

  src = fetchFromGitHub {
    owner = "geistesk";
    repo = "et";
    rev = "${version}";
    sha256 = "167w9qwfpd63rgy0xmkkkh5krmd91q42c3ijy3j099krgdfbb9bc";
  };

  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";
    homepage = https://github.com/geistesk/et;
    license = licenses.gpl3;
    platforms = platforms.unix;
    maintainers = with maintainers; [ geistesk ];
  };
}