about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/X11/screen-message/default.nix
blob: c049c3841ea61797e1373201993aa8b4e3592525 (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
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gtk3 }:

stdenv.mkDerivation rec {
  pname = "screen-message";
  version = "0.28";

  src = fetchFromGitHub {
    owner = "nomeata";
    repo = "screen-message";
    rev = version;
    hash = "sha256-KHJL1N72Hc1B1m0olxoZxBHIpq/d/T3m2VdS5XC9+tk=";
  };

  nativeBuildInputs = [ autoreconfHook pkg-config ];
  buildInputs = [ gtk3 ];

  # screen-message installs its binary in $(prefix)/games per default
  makeFlags = [ "execgamesdir=$(out)/bin" ];

  meta = {
    homepage = "https://www.joachim-breitner.de/en/projects#screen-message";
    description = "Displays a short text fullscreen in an X11 window";
    license = lib.licenses.gpl2Plus;
    maintainers = [ lib.maintainers.fpletz ];
    mainProgram = "sm";
    platforms = lib.platforms.unix;
  };
}