1 { lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkg-config
2 , glib, libwnck, procps }:
4 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
12 sha256 = "1c6ab1s9bbkjbmcfv2mny273r66dlz7sgxsmzfwi0fm2vcb2lwim";
15 outputs = [ "out" "man" "doc" ];
17 nativeBuildInputs = [ cmake pkg-config makeWrapper ];
18 buildInputs = [ glib libwnck ];
21 wrapProgram $out/bin/xsuspender \
22 --prefix PATH : "${lib.makeBinPath [ procps ]}"
26 description = "Auto-suspend inactive X11 applications";
27 mainProgram = "xsuspender";
28 homepage = "https://kernc.github.io/xsuspender/";
29 license = licenses.wtfpl;
30 maintainers = with maintainers; [ offline ];
31 platforms = platforms.linux;