1 { lib, stdenv, fetchgit, makeWrapper
2 , surf, wmctrl, matchbox, xdotool, unclutter
3 , xorg, pulseaudio, xprintidle-ng }:
5 stdenv.mkDerivation rec {
6 pname = "surf-display";
7 version = "unstable-2022-10-07";
10 url = "https://code.it-zukunft-schule.de/cgit/surf-display";
11 rev = "ad0bd30642f8334d42bb08ea5c1b9dd03fccc4d1";
12 hash = "sha256-wiyFh1te3afASIODn0cA5QXcqnrP/8Bk6hBAZYbKJQQ=";
15 nativeBuildInputs = [ makeWrapper ];
29 patches = [ ./pdf-makefile.patch ];
31 buildFlags = [ "man" ];
34 substituteInPlace $out/share/xsessions/surf-display.desktop \
35 --replace surf-display $out/bin/surf-display
37 substituteInPlace $out/bin/surf-display --replace /usr/share $out/share
39 patchShebangs $out/bin/surf-display
40 wrapProgram $out/bin/surf-display \
41 --prefix PATH ':' ${lib.makeBinPath buildInputs}
44 makeFlags = [ "PREFIX=${placeholder "out"}" ];
47 providedSessions = [ "surf-display" ];
51 description = "Kiosk browser session manager based on the surf browser";
52 mainProgram = "surf-display";
53 homepage = "https://code.it-zukunft-schule.de/cgit/surf-display/";
54 maintainers = with maintainers; [ ];
55 license = licenses.gpl2;
56 platforms = platforms.linux;