2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkg-config
|
2021-06-28 23:13:55 +00:00
|
|
|
, glib, libwnck, procps }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xsuspender";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "1.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kernc";
|
|
|
|
repo = "xsuspender";
|
|
|
|
rev = version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "1c6ab1s9bbkjbmcfv2mny273r66dlz7sgxsmzfwi0fm2vcb2lwim";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" "doc" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ glib libwnck ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/xsuspender \
|
2023-02-02 18:25:31 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ procps ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Auto-suspend inactive X11 applications";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://kernc.github.io/xsuspender/";
|
|
|
|
license = licenses.wtfpl;
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|