1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 pkg-config,
7 gtk3,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "screen-message";
12 version = "0.29";
13
14 src = fetchFromGitHub {
15 owner = "nomeata";
16 repo = "screen-message";
17 rev = version;
18 hash = "sha256-fwKle+aXZuiNo5ksrigj7BGLv2fUILN2GluHHZ6co6s=";
19 };
20
21 nativeBuildInputs = [
22 autoreconfHook
23 pkg-config
24 ];
25 buildInputs = [ gtk3 ];
26
27 # screen-message installs its binary in $(prefix)/games per default
28 makeFlags = [ "execgamesdir=$(out)/bin" ];
29
30 meta = {
31 homepage = "https://www.joachim-breitner.de/en/projects#screen-message";
32 description = "Displays a short text fullscreen in an X11 window";
33 license = lib.licenses.gpl2Plus;
34 maintainers = [ lib.maintainers.fpletz ];
35 mainProgram = "sm";
36 platforms = lib.platforms.unix;
37 };
38}