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